Problem with the new Advanced MOD

Discussions about modding and share your mods with other players in this forum.
counting
Level 8 user
Posts: 843
Joined: Wed Jan 29, 2014 12:44 am
Been thanked: 1 time

Problem with the new Advanced MOD

Post by counting »

I was trying to add a new raw and mineral type, it works fine and can enter the setting screen, but during loading into game the error occur

Error Opening file RAW\[my raw mineral name].RAW

There is no where in the MOD kit to put logo into a raw product class type, and have to manually add image to RAW folder?
-------------------------------------------------------------------
Twitch channel : twitch.tv/ancientbuilder
Youtube channel : www.youtube.com/user/countingtls
-------------------------------------------------------------------
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Problem with the new Advanced MOD

Post by clark17 »

Try in \MOD_kit\Images\Products with your product name.
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
counting
Level 8 user
Posts: 843
Joined: Wed Jan 29, 2014 12:44 am
Been thanked: 1 time

Re: Problem with the new Advanced MOD

Post by counting »

I already added the image in it, it simply can not find it.
-------------------------------------------------------------------
Twitch channel : twitch.tv/ancientbuilder
Youtube channel : www.youtube.com/user/countingtls
-------------------------------------------------------------------
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Problem with the new Advanced MOD

Post by clark17 »

Same error for me...
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
User avatar
clark17
Translation Contributor
Translation Contributor
Posts: 94
Joined: Fri Feb 01, 2013 11:09 pm

Re: Problem with the new Advanced MOD

Post by clark17 »

When i try to add RABBIT and MRABBIT products i have another error:
Image
[MOD] Real World for Capitalism Lab
Really sorry for my english like a Spanish cow ;-)
counting
Level 8 user
Posts: 843
Joined: Wed Jan 29, 2014 12:44 am
Been thanked: 1 time

Re: Problem with the new Advanced MOD

Post by counting »

I tried something simple with just one new type of car - luxury car codename LUXCAR, with new image LUXCAR.png, with the same manufacturing materials as car, but different price, quality ratio and necessity. I added one line each in Product_Names.dbf, Product_Types.dbf, and Manufacturing.dbf nothing less.

This error of method.cpp occur during loading
Attachments
error method cpp.png
error method cpp.png (7.45 KiB) Viewed 1983 times
-------------------------------------------------------------------
Twitch channel : twitch.tv/ancientbuilder
Youtube channel : www.youtube.com/user/countingtls
-------------------------------------------------------------------
counting
Level 8 user
Posts: 843
Joined: Wed Jan 29, 2014 12:44 am
Been thanked: 1 time

Re: Problem with the new Advanced MOD

Post by counting »

After some try and error, I found the trigger of the method.cpp bug. In Product_Types.dbf of the field Price, any number greater than 20000 will trigger it, (even just 20001), although the MOD help says its range from 1 to 99999 (there are number of errors in the MOD help as well, like the length of measurement unit name of the product in plural is 8 chars not 6 chars).

This bug also means, currently no unit price can be more expensive than a normal car.

Still trying to pin-point what's triggering error in adding new product, perhaps Product_Names.dbf is fixed in row size, and not able to read row 137?.
-------------------------------------------------------------------
Twitch channel : twitch.tv/ancientbuilder
Youtube channel : www.youtube.com/user/countingtls
-------------------------------------------------------------------
counting
Level 8 user
Posts: 843
Joined: Wed Jan 29, 2014 12:44 am
Been thanked: 1 time

Re: Problem with the new Advanced MOD

Post by counting »

This is the first odd bug with MOD that adds new products, once now and then during fine tuning price + - (before even touching the newly MOD added product), the error Town::town_item() occurs.
Attachments
Town_item.jpg
Town_item.jpg (521.79 KiB) Viewed 1978 times
-------------------------------------------------------------------
Twitch channel : twitch.tv/ancientbuilder
Youtube channel : www.youtube.com/user/countingtls
-------------------------------------------------------------------
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9376
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 21 times
Been thanked: 52 times

Re: Problem with the new Advanced MOD

Post by David »

counting wrote:I was trying to add a new raw and mineral type, it works fine and can enter the setting screen, but during loading into game the error occur

Error Opening file RAW\[my raw mineral name].RAW

There is no where in the MOD kit to put logo into a raw product class type, and have to manually add image to RAW folder?
The current MOD kit does not yet support new images for natural resources. To get around this problem, you may duplicate a existing natural resource image file in the "RAW" folder and rename it as the item code of the new natural resource item you have added. (e.g. let's say we are adding Uranium whose item code is "URANIUM", you may duplicate a copy of GOLD.RAW and rename it as "URANIUM.RAW")
User avatar
David
Community and Marketing Manager at Enlight
Posts: 9376
Joined: Sat Jul 03, 2010 1:42 pm
Has thanked: 21 times
Been thanked: 52 times

Re: Problem with the new Advanced MOD

Post by David »

clark17 wrote:When i try to add RABBIT and MRABBIT products i have another error:
Image
I have added additional instructions for adding new farming items on the CapLab web site.
Please read: http://www.capitalismlab.com/advanced-m ... rming.html

By following the new instructions, you should be able to resolve the problems.
Post Reply