HentHighSchool Development Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

collapse
* Recent Posts
Re: Girl packs by Quiet Bob
[Today at 05:23:03 pm]


Re: [HHS+ 1.10 Beta] Public Beta Bugs by MrWilsonMJ
[Today at 04:49:49 pm]


Re: Test version for 0.2 by Jman
[Today at 04:41:17 pm]


Re: Test version for 0.2 by Avox
[Today at 04:15:40 pm]


Re: [HHS+ 1.10 Beta] Public Beta Discussion / Feedback by squark
[Today at 02:04:55 pm]


Pages: [1]   Go Down

Author Topic: New Tradable or Gifts Items  (Read 4803 times)

gotsome23

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
New Tradable or Gifts Items
« on: August 29, 2021, 08:37:13 pm »

Hello all,

I'm trying to add more Movies and books to my game and I can get them in the game. What I would like to be able to do is give them to the students and parents in the game but the Put button is greyed out when I trade items with them.

Is there a way I can make this happen?
Logged

Dragonblood

  • Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1542
  • Code monkey
    • View Profile
Re: New Tradable or Gifts Items
« Reply #1 on: August 31, 2021, 02:14:20 am »

You would need to modify \Schools\NormalSchool\Events\Interactions\Items\TradeItems.ve.xml to add handling for your new items.
Logged

gotsome23

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
Re: New Tradable or Gifts Items
« Reply #2 on: August 31, 2021, 03:01:57 am »

Thanks Dragonblood. That is what I have been looking for.
Logged

Umgah

  • Full Member
  • ***
  • Offline Offline
  • Posts: 235
    • View Profile
Re: New Tradable or Gifts Items
« Reply #3 on: August 31, 2021, 04:52:59 am »

You would need to modify \Schools\NormalSchool\Events\Interactions\Items\TradeItems.ve.xml to add handling for your new items.
Yeah, the infamous "TradeItems.ve.xml". Almost any mod that wants to add any non-trivial customized items have to modify it and becomes incompatible with all other mods that do the same  :'(
Logged

Shilo

  • Moderator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2262
    • View Profile
Re: New Tradable or Gifts Items
« Reply #4 on: August 31, 2021, 07:50:20 pm »

You would need to modify \Schools\NormalSchool\Events\Interactions\Items\TradeItems.ve.xml to add handling for your new items.
Yeah, the infamous "TradeItems.ve.xml". Almost any mod that wants to add any non-trivial customized items have to modify it and becomes incompatible with all other mods that do the same  :'(

Wow, I wasn't even aware of that event. It does not look entirely unfeasible to split parts of it into Extension Library events. It would just be quite a lot of manual work.
Logged

Umgah

  • Full Member
  • ***
  • Offline Offline
  • Posts: 235
    • View Profile
Re: New Tradable or Gifts Items
« Reply #5 on: September 02, 2021, 05:17:46 am »

Wow, I wasn't even aware of that event. It does not look entirely unfeasible to split parts of it into Extension Library events. It would just be quite a lot of manual work.
I would even volunteer to do at least some parts of work of splitting/refactoring TradeItems.ve.xml but there is no point to do that with current public 1.9.5 version because there are some pending changes for 1.10.
Logged
Pages: [1]   Go Up
 


anything
SimplePortal 2.3.3 © 2008-2010, SimplePortal