Pichii
Refugee
- Version
- 2.3
- Platform
- Windows
Hi there pimps I got a strange one for you today.
Ive been dabbling in MODs recently; making my own.
I tinkered around and got a spawning mod working and that has been a great time.
I decided to expand and attempt to do a Learn By Doing system in 7d2d for v2.3.
A little preamble- I can code in 8 differnt languages. If you wish, I can give you a link to my project folder containing working code in said languages. I mention because I know this report is gona get frowned at.
I decided to logically program the 'brain' of the code into buffs as buffs allows me to easily check EXP variables with the buff, cycle through and properly apply a 'level up' this 'level up' gives a perk point as if one read a crafting skill book.
For this mod to work, I needed buffs.xml edit, items.xml edit and recipies.xml edit.
I decided to use Gemini a bit as there was alot of repetitive work and I have the premium version. Gemini with my help managed to output 2 working xmls, buffs and recipies. (Also note the aforementioned spawning mod, made the same way and WORKS.)
Now for the issue at hand;
items.xml is either
A. So chaotic, nobody can figure out how it works (Gemini and I have tried for 7 days to find a template, common logic system, for items but nothing works. game cannot parse.
B. I tried xpath but xpath append and modify but parser cannot accurately link <properties> or <groupeffect> to mod the logic for "Add exp on item swing completion" game cannot parse.
C. I tried simply removing all sections of vanilla with remove functions and then added my variables with a copy of the vanilla code for action0 and action1 game cannot parse.
D. I fed this info through gemini/clyde for a week along with myself helping it with the logic. It keeps coming back to "Replace everything because the parser cannot detect even its own variables to parse."
Im simply trying to do this with XML edits and parser. I dont wana have to C my way in, its ultra complex. Alas, I may have to because the mod parser cant parse.
I do not know if its too complicated or what.
If I attempt to append action0 or action1, the game cannot parse it even if the code/logic is correct.
This bit should be the easy part;
find action0 and action1 (Use action1 only if a "Power Attack" is found.)
append EXP variable to action0/action1 and add exp on selfPrimaryActionEnd and selfSecondaryActionEnd for governing crafting exp.
The game cannot parse this simple code.
I think the game parser is broken OR, items.xml is such a cluster fudge mess, nobody, not even the robots themselves can understand it and/or make it work...
I have included my current modlet just so verification can take place. Please let me know if im just a fool or if this is a legitimate bug. I wana pull my hair out over this.
EVERYTHING except items.xml (items.txt for upload) works and the mod parser got em just fine. Its ONLY items.xml that is the issue and its because items.xml has nothing standardized, no template and there are some unique entries as well which make it exceptionally difficult if not impossible to mod 7d2d and im unsure my logic/code is to blame at this point; particularly when multiple AI have claimed; "There is an issue with the mod parser."
Thanks in advance.
Ive been dabbling in MODs recently; making my own.
I tinkered around and got a spawning mod working and that has been a great time.
I decided to expand and attempt to do a Learn By Doing system in 7d2d for v2.3.
A little preamble- I can code in 8 differnt languages. If you wish, I can give you a link to my project folder containing working code in said languages. I mention because I know this report is gona get frowned at.
I decided to logically program the 'brain' of the code into buffs as buffs allows me to easily check EXP variables with the buff, cycle through and properly apply a 'level up' this 'level up' gives a perk point as if one read a crafting skill book.
For this mod to work, I needed buffs.xml edit, items.xml edit and recipies.xml edit.
I decided to use Gemini a bit as there was alot of repetitive work and I have the premium version. Gemini with my help managed to output 2 working xmls, buffs and recipies. (Also note the aforementioned spawning mod, made the same way and WORKS.)
Now for the issue at hand;
items.xml is either
A. So chaotic, nobody can figure out how it works (Gemini and I have tried for 7 days to find a template, common logic system, for items but nothing works. game cannot parse.
B. I tried xpath but xpath append and modify but parser cannot accurately link <properties> or <groupeffect> to mod the logic for "Add exp on item swing completion" game cannot parse.
C. I tried simply removing all sections of vanilla with remove functions and then added my variables with a copy of the vanilla code for action0 and action1 game cannot parse.
D. I fed this info through gemini/clyde for a week along with myself helping it with the logic. It keeps coming back to "Replace everything because the parser cannot detect even its own variables to parse."
Im simply trying to do this with XML edits and parser. I dont wana have to C my way in, its ultra complex. Alas, I may have to because the mod parser cant parse.
I do not know if its too complicated or what.
If I attempt to append action0 or action1, the game cannot parse it even if the code/logic is correct.
This bit should be the easy part;
find action0 and action1 (Use action1 only if a "Power Attack" is found.)
append EXP variable to action0/action1 and add exp on selfPrimaryActionEnd and selfSecondaryActionEnd for governing crafting exp.
The game cannot parse this simple code.
I think the game parser is broken OR, items.xml is such a cluster fudge mess, nobody, not even the robots themselves can understand it and/or make it work...
I have included my current modlet just so verification can take place. Please let me know if im just a fool or if this is a legitimate bug. I wana pull my hair out over this.
EVERYTHING except items.xml (items.txt for upload) works and the mod parser got em just fine. Its ONLY items.xml that is the issue and its because items.xml has nothing standardized, no template and there are some unique entries as well which make it exceptionally difficult if not impossible to mod 7d2d and im unsure my logic/code is to blame at this point; particularly when multiple AI have claimed; "There is an issue with the mod parser."
Thanks in advance.
- Reproduction Steps
- Madke a modinfo file, put those in with the mod, put in mod folder.
- Link to Logs
- https://pastebin.com/ywNqHmv9
- Link to Screenshot/Video
- https://pastebin.com/ywNqHmv9