Thread: Howto Hack the Modifiers window
-
November 21st, 2016, 10:59 #1
- Join Date
- Nov 2016
- Location
- France
- Posts
- 8
Howto Hack the Modifiers window
Hello,
Sorry if I am not wright, it is my first post here and English is not my native language.
I am trying to modify the "Pavillon Noir" Ruleset.
In it the modifierstack has been hidden and there is now two modifierstacks instead (this game system use 2 parameters in resolve Rolls : one as Number of dice to roll and the second one as value to roll under for each dice, they are called Éfficacité (efficiency in french) and Facilité (easyness in french) and both can be modified by bonus/malus).
In the ruleset the mechanic invoking them is implemented, however the Modifier Window has been disabled. I succeed to put back the icon to open the Modifier window But the in it I need to do 2 changes :
- First change is to change the input number association with the new modifierstackeff instead of modifierstack
- Secondly, to add a second input number for the modifierstackcal.
The ruleset contains : modifierstackeff.lua, modifierstackfac.lua, modifierstackeff_base.lua, modifierstackeff_modifier.lua, modifierstackfac_base.lua, and modifierstackfac_modifier.lua
So I think nothing is missing on the lua part, it is more how to change and add to the Modifiers interface.
I think that has something to do with the desktop_classes.xml and utility_modifier.xml but I am not sure and I can't figure out how to alter it so it works.
Is someone could help with that ?
Thanks a lot.
-
November 21st, 2016, 11:33 #2
Welcome sioc
Sadly for you the changes you want to implement are easy for a human brain to manage and very hard to program.
You will need to actually pull apart the (quite complex) code and learn how it all works and how it interacts with other elements.
If you are not a programmer this is probably not a good first project for you.
-
November 21st, 2016, 12:13 #3
- Join Date
- Nov 2016
- Location
- France
- Posts
- 8
Thanks for that answer damned,
I don't know if I qualify as programmer, I do some perl, php and bash.
I'd hope some help would suffice to point me to the right direction.
Could you tell me at least if the files I pointed are at the right ones ?
I think the only thing that is missing for ruleset/extension programming is an anatomy explanation of the CoreRPG (and some comments in the code).
I'll do some tries and errors while rereading the good "Jeff's Excruciatingly Simple Extension Tutorial for Fantasy Grounds".
Edit:
PS: just to see if I understood how things work : the LUA/XML in FG is like perl/TK, LUA for code allowing dynamic and interaction and XML for graphic 'object' code ?Last edited by sioc; November 21st, 2016 at 12:39.
-
November 21st, 2016, 13:03 #4
Hi sioc Id love to help but your already out of my depth.
The modifiers cose is already quite complex and many parts of the game system reference the modifiers.
Im totally unfamiliar with the gamesystem and the ruleset you are using and how it interacts with the modifiers.
I use notepad++ and i use find in files and I start with one thing that I know and I look for where that is used and then start tracking back.
Its possible you might be better off downloading MoreCore and having a look at some of the dice rollers there.
We have a couple that would be close and should be convertible.
Have a look for example at /successes this would need a new version /sioc (or whatever your system is called) that uses /sioc #d#y# where the last # is the number to roll under. Do you also need to add modifiers to teh total? if so there is a bit more coding there. If you write this extension (using the file \desktop\scripts\morecore_trenloe_countsuccesses.l ua as your example) I will include it in MoreCore. You will be able to create libraries of rolls and drag the to the Character Sheet etc.
-
November 21st, 2016, 14:43 #5
- Join Date
- Nov 2016
- Location
- France
- Posts
- 8
hi,
All the rolling system, test and the 2 new Modifierstacks are already working in the ruleset (they can be invoked individually from an other part of the ruleset).
The thing is that the dev disabled the Modifiers window by removing the button that allow to 'open' it, but I already put back that button.
I just have to figure out how to modify the modifiers window to add a second input number and how from there make these 2 numbers interact with the 2 new modifierstacks already in place instead of the one given in the Core (and not used).
Edit:
Anyway, i'll look to the MoreCore (could be interesting).Last edited by sioc; November 21st, 2016 at 14:58. Reason: making the thing clearer...
-
November 21st, 2016, 18:34 #6
Hey Sioc, have you had a look at the ruleset modification guide? It has some into information and then links into reference documentation on the xml and lua.
I know next to nothing about coding myself, but I do know that these sources are often referred to by others;
https://www.fantasygrounds.com/modguide/
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
November 21st, 2016, 20:09 #7
- Join Date
- Nov 2016
- Location
- France
- Posts
- 8
-
November 21st, 2016, 20:35 #8
- Join Date
- May 2012
- Location
- France
- Posts
- 103
Hi sioc,
Why don't you try asking on jdrvirtuel ? The author of the Pavillion Noir ruleset wanders there from time to time. Tu trouveras facilement son sujet dans FG3.
-
November 22nd, 2016, 02:28 #9
Good FG development background, guidelines and links here: https://www.fantasygrounds.com/forum...oreRPG-ruleset
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
November 22nd, 2016, 02:30 #10Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks