My First mod is crashing and I can't figure it out!

abstractbuffalo

Chieftain
Joined
Oct 27, 2014
Messages
29
Location
MKE
I based it on The Canadian Dominion NotSoLoneFox (with his permission of course)

Anyway I have gone over the code and I think it might be an icon problem as I was tired when working on that last night.

Included is the database log from when I loaded the mod. I will even upload the current version if if want me to.

Database log
 
Moderator Action: Moved to the Modding Help forum.

In answer to your question, it's really hard to say for sure if you don't upload your mod files what is going wrong.
 
Ill have a quick look see if i can spot anything wrong, bit tired myself though, working on a BSG mod, got Battlestars, Vipers and Raptors in finally :)
 
I was starting to think no one cared because of a new user. I have never been a big message board person.

I'm really thankful that you'll take a look.

I will also check out that mod when you're done sounds interesting.
 
One thing you will definitely find causing issues with your mod is your Diplomacy file, you have text strings mixed in there with a <Cargo> function too. You probably want to pull those out, they shouldnt cause an error as such, but they will just refuse to work.
Whack the <Crago>......</Cargo> outside of the <Diplomacy_Responses> .... </Diplomacy_Responses> tags
Any text file entries should also be wrapped in <Language_en_US> tags. Will keep looking to try and hunt down this error you are having

Edit: Another quick thing i just spotted, in your Icons files you are using the 8x8 Icon ref, yet you are only listing them as 1 row accross and 1 column down in your CivBEIconTextureAtlases.xml. These should all be 8 rows by 8 columns :).
Your Personality script may throw a tantrum too as it should be Russia not Russian ;)
 
Ok So i think I have found your issue lol, its my own fault not finding it sooner because i dont tend to look too closely at the Text Entry files, since if they error out they normally just put whatever the variable assigned's name was. Looking closer I can see whats up, pretty much the entire first section of your text file has this..

<Row Tag="XXXX">
<Text>Bla bla bla bla</Text>

However you then never close a lot of the <Row> tags, just like with any programming language, you need to tell SQL and XML where the lines end. For XML this is done by </TagName> I cant stress how important it is to check every instance to make sure that it is closed properly and that every open tag has a close tag :).

I also tracked down another error in your Traits file, you have a </Cargo> where it should be an open tag <Cargo>.

Also the <Trait_ImprovementYieldChanges> tag is for improved tiles, not for buildings, so it will function as you are expecting it to on IMPROVEMENT_FARM but not on things like BUILING_TRADE_DEPOT.

Let me know if you still get the errors after fixing all those ;)
 
thank you so much I will make those changes now I know that but I should know better.

edit: I went through and did and make all the changes and fixed some stuff in the modinfo. I even corrected a few Esperanto typos just because I was in there.
 
You also need to Separate out each of the Trait_ImprovementYieldChanges statements so they are enclosed in their own <Row> wraps
 
haha keep them coming if you can.

Also would you be so nice as to tell me what is the tag for building trade yields are?
 
Afaik there isnt one, you would have to go into Lua modding mode for that i think :/
 
oh damn, I was thinking about changing my trades anyway.

Edit: If you get back to this I have the latest build also my loading screen is now red...

Double Edit: PlymJim you have helped me so much and I thank you but You have your own work and have helped me so much.
If anybody else wants to give it a shot It would mean a lot to me.

Otherwise, I will wait until NotSoCrazy fox gets back from what he is doing.
I'm Having fun play testing Canadian Dominion and taking notes anyway.
 
The red screen thing will be due to your link to the intro art graphic; If you have none specified it does that.

Code Snippet follows:
<IntroductionImage>DOM_Red.dds</IntroductionImage>

That should be between your <Civilizations> tags or another DOM_Xxx.dds
 
Back
Top Bottom