Problem with new mod

General Discussions about new beta versions of Capitalism Lab
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Problem with new mod

Post by Black »

I created small mod with food and beverage products only, but when i start a game with industrial seaports enabled game crashes with: ItemRes::operator[]. When i disable industrial ports, mod runs fine.
Also when i build a factory, and try to click factory plan button, game crashes with the same error.
I deleted config.dat file but it didnt help. I made this mod from my JASM mod, but didnt change much really, just deleted all products but beverage and food. Mod file is in attachment. Any ideas what can cause this problem?
Last edited by Black on Mon May 18, 2015 3:47 pm, edited 1 time in total.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10436
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 228 times

Re: Problem with new mod

Post by David »

Please read this post: http://www.capitalismlab.com/forum/view ... =10&t=2541

Changes in the MOD kit for v2.7.02:
-\MOD_KIT\Data\Natural_Resources.DBF - the following 2 new fields have been added for the work-in-progress City Simulation expansion pack:
ELECT_FIRM - the firm code for a power plant that uses this natural resource as fuel
ELECT_CONV - the fuel to electricity conversion rate.
Since it is still work in progress, you may ignore them for now. MOD creators only have to merge the new DBF structure with their existing Natural_Resources.DBF. If your MOD does not create modified Natural_Resources.DBF, you may simply use the Natural_Resources.DBF that comes with the new patch v2.7.02


The problem can be fixed by updating your Natural_Resources.DBF following the above instructions.
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Problem with new mod

Post by Black »

Ah, i forgot to say, i am still using 2.7.01 beta, and had this problem even before 2.7.02 got released. But i will try to update to 2.7.02 and update mod to see what happens.

EDIT: I'm getting the same error after updating the game and mod. Updated mod in attachment.
Attachments
MOD.ZIP
(6.84 MiB) Downloaded 81 times
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Problem with new mod

Post by Black »

Sadly in new version 0.13 of JASM i have the same problem :( Game crashes when i click on factory plan button. I even made fresh install of 2.7.02beta, didnt help.

EDIT: JASM version 0.12a works fine with 2.6.37 CapLab.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10436
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 228 times

Re: Problem with new mod

Post by David »

Please send me your file and I will investigate the problem.
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Problem with new mod

Post by Black »

You can download JASM v0.13 from this post in mod forum.
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10436
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 228 times

Re: Problem with new mod

Post by David »

Please try this solution:

Delete all files in C:\Users\<your user name>\Documents\My Games\Capitalism Lab Post-Release Beta\GAMESET
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Problem with new mod

Post by Black »

It fixed the problem with JASM, thank you. However new food mod is still crashing when starting a game with industrial seaports on, or when clicking factory plan button. Are you able to reproduce this crash?

Also i dont know if this is connected, but when i tried to automatically update to CapLab 2.7.03, installer crashed (Capitalism Lab stopped working).
User avatar
David
Community and Marketing Manager at Enlight
Posts: 10436
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 78 times
Been thanked: 228 times

Re: Problem with new mod

Post by David »

Please provide me with the files for the food mod as well.
User avatar
Black
Level 4 user
Posts: 110
Joined: Tue Feb 26, 2013 12:07 am

Re: Problem with new mod

Post by Black »

Food mod is in attachment to 3rd post in this topic.
Post Reply