For the last two days I've been reorganizing the tech tree for my mod, and I simply cannot get it to work no matter what I do. The rest of the parts of my mod work fine, but the tech tree is just doing nothing. I've not been able to find a tutorial or anything specifically about doing a tech tree other than the two threads about making them exclusive to civs and making them unresearchable from the Modding Tutorial's forum.
I was able to get the Prereqs for the techs working (incomplete) but I am not able to move any of the tech locations around or add any new techs. I have been working on just this tech tree for several days and I've pretty much ruled out everything I can think of.
I don't know what I'm doing wrong, but the Tech Tree just will not change for me. It is probably something really basic and stupid but I have literally spent all day working on the code (and yesterday, and part of the day before) and it still has done nothing.
Oh, and the Defines.xml also seems to not work. Don't know what's up with that (I think I put the wrong tags for it, but I haven't done anything with it since I've been preoccupied with the tech).
I'm attaching the mod here so anyone can take a look at it (Play as Rome [SPQR] on 'Realistic' gamespeed if you want to see the other minor changes I've made). It is very much a work in progress and very new. I plan to release it once I get the Tech Tree done but that's more so people can suggest ideas about what kind of units would be good to add and what needs rebalancing, but I plan to add much more to it (some new units, some more new techs if I can).
The included file Tech.xml which isn't added to the .modinfo file is the attempt from the WYSIWYG editor that I based my newer files off of after my first try didn't work. I overwrote my first try and the SQL version I did so I could not include them, and because of that, the tech files were the ones based off the autogen and were too big for the tech tree (or so I thought).
Also, why would the SQL file not work if I copy/pasted it and it was the same? I'm sure it is me forgetting some stupid little detail, but I've not been able to figure out what. There are no other files in the Better Tech Tree mod other than the .modinfo.
TL;DR:Please someone tell me how the hell to format a Tech tree.
If somehow anyone gets it to work, feel free to give suggestions. The Tech Tree is kind of wild right now (things are a bit spread out) but anything helps.
I was able to get the Prereqs for the techs working (incomplete) but I am not able to move any of the tech locations around or add any new techs. I have been working on just this tech tree for several days and I've pretty much ruled out everything I can think of.
- Tried to build it manually myself. I've had all the OnModActivate and UpdateDatabase right, I've got the XML right this whole time (as far as I know).
- I tried building a TechTree in the WYSIWYG editor and that didn't work.
- I didn't know what to do at this point, so I decided to do a test with another mod. I downloaded "Better Technology Tree (v7)" and tried to run that in the game. Worked fine.
- I copied the first part of his mod and made an SQL file of it with the values I wanted. Nothing.
- At first I thought my tech tree might have been too long, so I shortened it and made sure it is within the parameters of the vanilla tech tree. Didn't work.
- Decided I'd try something a little different this time...so I completely copy/pasted the Better Tech Trees mod to another SQL file, put it in it's own mod, made sure I did OnModActivate/UpdateDatabase/location, built the mod and tried to run it. It looked exactly identical to what is packaged in the Better Tech Tree mod, even the .modinfo file did, except for the ModID and my name. It still did not work.
I don't know what I'm doing wrong, but the Tech Tree just will not change for me. It is probably something really basic and stupid but I have literally spent all day working on the code (and yesterday, and part of the day before) and it still has done nothing.
Oh, and the Defines.xml also seems to not work. Don't know what's up with that (I think I put the wrong tags for it, but I haven't done anything with it since I've been preoccupied with the tech).
I'm attaching the mod here so anyone can take a look at it (Play as Rome [SPQR] on 'Realistic' gamespeed if you want to see the other minor changes I've made). It is very much a work in progress and very new. I plan to release it once I get the Tech Tree done but that's more so people can suggest ideas about what kind of units would be good to add and what needs rebalancing, but I plan to add much more to it (some new units, some more new techs if I can).
The included file Tech.xml which isn't added to the .modinfo file is the attempt from the WYSIWYG editor that I based my newer files off of after my first try didn't work. I overwrote my first try and the SQL version I did so I could not include them, and because of that, the tech files were the ones based off the autogen and were too big for the tech tree (or so I thought).
Also, why would the SQL file not work if I copy/pasted it and it was the same? I'm sure it is me forgetting some stupid little detail, but I've not been able to figure out what. There are no other files in the Better Tech Tree mod other than the .modinfo.
TL;DR:Please someone tell me how the hell to format a Tech tree.
If somehow anyone gets it to work, feel free to give suggestions. The Tech Tree is kind of wild right now (things are a bit spread out) but anything helps.