New SDK Tools 12/15/2010

blazekid87

Warlord
Joined
Oct 5, 2010
Messages
179
Location
NYC
Ok well weve got new SDk tools but ive been having issues with some of the new changes so I wanted to start a thread that would discuss the new changes and how to adjust previous mods to work with the new patch.
First thing I noticed....UPDATE ALL YOUR LUA FILES. Meaning you have to use the new LUA files since most of them have been updated. This solved numerous problems for me from the start. The easiest way to do this is copy your old code and insert it in the new LUA file. Although you may want to go over the code one more time to make sure the changes are in line with the update.

MODBUDDY

Problem:
Unable to load Icon .dds files.
Solution:
In the bottom right corner of Modbuddy, there is a new option to make VFS true or false. It needs to be set true for all .dds files that refer to icons and unit flags.

Problem:
Unable to load custom units.
Solution:
This need to be addressed by firaxis. In the meantime, the only work-around is the following.
1. In Modbuddy set the VFS to true for your artdefines_units and artdefines_unitmembers.
2. Open the .MODINFO file in your mod folder.
3. Erase all Import"0" or Import"1" from all files that relate to your custom unit graphics (.gr2, .dds and .fxsxml)

NEXUS

Problem:
Nexus doesnt seem to show the units correctly. Neither the original nor the custom units. Dont know what may be causing this but I would love to know if Im alone or if other people are having this issue as well.
Solution:
None atm.


Please post any other problems or solutions that you may come across.
 
I haven't encountered any Modbuddy issues with the new SDK - and I've also had to cut and paste my lua code into the new version lua.

My main issue is that so far CIV no longer recognizes any of my .dds files and wont even display any custom units or buildings. It's like they gave us the beta build of the new SDK...
 
great so im not the only one having this problem. Ill try to see if I can get in touch with 2k.

On the the second thought, when it first updated, the custom units did work. Ill try to reinstall first and see what happens.
 
Sorry for the newbishness, but what exactly are the new tools and how do you use them?
 
The SDK (Software Developers Kit) tools from steam. They're not new, they just got updated as well. You can get it from steam, its under tools->Civilization V SDK.
 
Oh yeah, I'm using it. It's just what new things can you do? Read something about overriding gameplay specific events.

Edit: "Added GameEvents system for overriding Gameplay DLL specific functionality"
 
great so im not the only one having this problem. Ill try to see if I can get in touch with 2k.

On the the second thought, when it first updated, the custom units did work. Ill try to reinstall first and see what happens.

I also had units/buildings not loading up. Found this was because firaxis added new buildings - the national wonders - onto techs that I also added techs onto. I suppose there's a limit of 5 buildings/units per tech because once I shuffled my units/buildings that were overlapping to different techs they appeared again.

Any luck getting your GP mod working? When I reinserted the code it displayed in TopPanel and appeared to be calculating correctly but I wasn't getting any text/info in the tooltip box.

EDIT
Disregard that: I forgot to add Controls.GreatPeopleString:SetToolTipCallback(GreatPeopleTipHandler);

I plan on releasing the next version of my NiGHTS mod sometime during the next few days and was hoping to use your GP mod as it will directly compliment some new gameplay changes I'm implementing. Just wanted to get your approval beforehand. I would of course give you proper credit for your efforts on the mod.
 
I was able to find another thread that contained a solution for the .dds files not loading. In the bottom right corner there is a new option called VFS. You need to check it true for all .dds files. Im not sure about whether it needs to be done for the .gr2 or any other file.
 
I was able to find another thread that contained a solution for the .dds files not loading. In the bottom right corner there is a new option called VFS. You need to check it true for all .dds files. Im not sure about whether it needs to be done for the .gr2 or any other file.

Hmm this could be what causes lua files not to work for some people. From the description should be true if you have a vanilla file that you override, false if you have a new item
 
Hmm this could be what causes lua files not to work for some people. From the description should be true if you have a vanilla file that you override, false if you have a new item

Correct but now I found that it is also the issue that makes custom units not work. To get them to work, you have to erase the import"0" from every file in the .MODINFO file that refers to your custom units (including textures). The artdefines and .dds files (Only for the icons) should be set to import".
 
Hi all... any tip about the missing TXT_KEY? Sudden appear in my Brazil New Civ mod and i cant find nothing about... thanks
 
I nocied that ChangeHappinessFromBuildings is not working in the new patch, I am 100% sure that it was working before (but dont rememebr before wich patch it was working).

Player:ChangeHappinessFromBuildings( int value).

Are they replacing functions without notice?
Well, they removed ScriptData without notice... I think the whole modding interface, Lua included, may be considered unstable for the forseeable future, or something.

Maybe post a question about it on the Wiki? Sseckman has been known to respond.
 
Back
Top Bottom