Page 1 of 2

Modding Documentation

Posted: Sun Oct 07, 2012 11:31 am
by Montis
A few things that I couldn't find documented in the modding documentation:
  • when a script function is triggered it receives the sender of the message as first argument
  • default party can be customized (create a save game, rename it as default_party.dat and copy it to mod_assets folder)
  • Item:getStackSize() - it does work but it's not in the list
Also a small request:
In the scripting reference and the asset definitions reference, would it be possible to add anchors to each of the entities / categories and then have a small index at the top so you can jump to those things faster? Those could then also better be linked in the forums etc.
Would be really great to have that :)

Re: Modding Documentation

Posted: Sun Oct 07, 2012 11:38 am
by Komag
I think I agree with all that, but perhaps this will just be something to keep in mind for setting up the wiki :)

Re: Modding Documentation

Posted: Sun Oct 07, 2012 11:43 am
by Montis
What I also wanted to ask:
in the save games and variables section, it's written that "static" assets won't get saved (last paragraph). I have found that this isn't the case (or at least for the things I tried yet) and my spawned stuff does carry over when saving and loading.
Did you change the saves that this is accomodated now?

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:38 pm
by hannamarin
How do you delete a logic item ? or any item accidentally added.

The delete key does not work, even though it is listed in the preferences.

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:43 pm
by Neikun
User the pointer too to select the item you want to delete. This should turn it yellow. Simply press the delete key immediately afterwards.

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:47 pm
by petri
Montis wrote:What I also wanted to ask:
in the save games and variables section, it's written that "static" assets won't get saved (last paragraph). I have found that this isn't the case (or at least for the things I tried yet) and my spawned stuff does carry over when saving and loading.
Did you change the saves that this is accomodated now?
Yeah, the save game doc is out of date and contains wrong info. Thanks for pointing that out!

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:50 pm
by hannamarin
Yeah, that tip about deleting does not work - I cannot delete buttons or other items accidentally added.

Delete key does not seem to be active for activatable items.

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:52 pm
by Lmaoboat
hannamarin wrote:Yeah, that tip about deleting does not work - I cannot delete buttons or other items accidentally added.

Delete key does not seem to be active.
That sounds more like a problem with your keyboard.

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:54 pm
by hannamarin
Delete key works fine on MS office and other programs which use a defined delete key.

Re: Modding Documentation

Posted: Sun Oct 07, 2012 5:58 pm
by hannamarin
Oh I see.
You have to go through all the options available ie wall_button 1 through to whatever until none are available and then the button can be deleted. Would be nice if the delete key worked straight away instead of the laborious route actually required.