Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 19th Apr 2026 at 8:49 AM
How to set the price for an object from a catalog above $32,767?
Hello.
Please tell me how to change the price catalog (for example, to Helicopter)? SimPE won't let me change the value above $32,767. (Error: "Cannot convert '50000'. This is not a valid Decimal Number of Type Int16!").
I would like to change the price of the helicopter, because it's strange for me that the helicopter costs $20,000, and some small, nondescript, house in the neighborhood costs $100,000 or more.

Please help, does anyone know how to bypass this restriction?
Test Subject
#2 Old 20th Apr 2026 at 7:02 PM
32767 is the largest number that an "Int16" can hold. This would be a limit imposed when programming some software.

I'm not sure if this limitation comes from just SimPE, or SimPE which has also considered the limit in the game.

If it's just SimPE, generally speaking you'd need to use something other than SimPE to set up the object.

If it's also the game, unfortunately the answer is most likely that you can't make any object this expensive.
Test Subject
Original Poster
#3 Old 21st Apr 2026 at 8:20 AM
Quote: Originally posted by mijiturka
32767 is the largest number that an "Int16" can hold. This would be a limit imposed when programming some software.

I'm not sure if this limitation comes from just SimPE, or SimPE which has also considered the limit in the game.

If it's just SimPE, generally speaking you'd need to use something other than SimPE to set up the object.

If it's also the game, unfortunately the answer is most likely that you can't make any object this expensive.



mijiturka, thank you for your reply. Is there a way to do this with another program?
Test Subject
Original Poster
#4 Old 21st Apr 2026 at 9:10 AM
I found a program called DatGen, maybe it will help. I haven't figured it out yet.
Test Subject
Original Poster
#5 Old 21st Apr 2026 at 4:33 PM
Quote: Originally posted by Alexshipin1234567
I found a program called DatGen, maybe it will help. I haven't figured it out yet.

DatGen program is buggy and won't save the package file.
I found a new program Yet Another Package Editor for editing DBPF files on GitHub. I changed the price in it, but the in-game price still showed up as $0.

So, the bottom line is that you can't change the price of any item in the game catalog above $32,767. This thread is closed. Thanks everyone.
Lost in Vilcabamba
retired moderator
#6 Old 21st Apr 2026 at 6:07 PM
DatGen is really old, I don't think it was updated much after 2005, so probably can't handle later version package files.
Top Secret Researcher
#7 Old 21st Apr 2026 at 9:18 PM
I don't think you can set the price any higher because a second high field doesn't exist for price or cureent value. Even the pirate ship costs 32K if I recall. I suppose you could charge additional money to the family when the object is placed with a BHAV mod. It would probably have to be done either in Main, or OnTimer (if mode == live && already charged == 0) because otherwise you would also charge money while it is held in hand in build mode. I could not find a way to detect actual placement for my box. This would not result in the lot getting more expensive because the object's value can only go so high unless you spawn a second hidden object, but that would be going too far in my opinion.
Me? Sarcastic? Never.
staff: administrator
#8 Old 21st Apr 2026 at 9:44 PM
The issue isn't with SimPE, but with the game and the integer, signed integers or whateever the right mathematical/programming name you want to call it.
Back to top