• Welcome to SC4 Devotion Forum Archives.
 

News:

The SC4 Devotion Forums are no longer active, but remain online in an archived, read-only "museum" state.  It is not possible for regular members to post or use the private messaging system, and no technical support will be provided for any issues pertaining to the forums in their current state.  Attachments (those that still work) are accessible without login.

The LEX has been replaced with SC4Evermore (SC4E), and SC4E maintains an active Discord server.  For traditional forums, we recommend Simtropolis.

Main Menu

Cannot Erase

Started by gabrielbyrnei, February 26, 2009, 07:28:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gabrielbyrnei

Well, i was playing a city and Built an N@B75 WaterPlant, once i erased it, it wouldnt go away from city budget.
I Modified it so the monthly cost looks more realistic, it didnt worked out very well, and it costs about $68.000 a month.

PD:A little help in modifying it would be appreciated aswell.

Thanks

RippleJet

NOB's waterplant includes two main treatment stations, 6 pipeline lots and one mini treatment station.

Out of these, only the last one, N@B75 mini, is suffering from the immortal lot syndrome (the building is exactly 48 m deep, placed on a 3×3 lot), which would be the reason for you not being able to delete it.

However, that one doesn't have a monthly cost of 68,000 § ... it's only 50 §.
Actually none of his lots cost that much... the two larger treatment plants cost 350 § and the pipes cost nothing.

What exactly does it say in the budget panel?

gabrielbyrnei

#2
I only built the large Water Plant, i modified the budget cost and thats why its so high, 68.000, though i didnt mean to put it that high

PD: I set the Budget Item: Cost at 5000 using the Float32 option.

RippleJet

Quote from: gabrielbyrnei on February 26, 2009, 08:47:03 AM
PD: I set the Budget Item: Cost at 5000 using the Float32 option.

That must be the culprit... never change the data type of existing properties. $%Grinno$%
That will certainly screw up in the game, as the game expects the data read to be of a certain type.

The Budget Item: Cost must be Sint64.

gabrielbyrnei

what about water produced? what data type should it be ?

RippleJet

Quote from: gabrielbyrnei on February 26, 2009, 09:30:05 AM
what about water produced? what data type should it be ?

Water Produced is read by the game as UInt32. ;)

Rayden

Quote from: RippleJet on February 26, 2009, 08:37:26 AM
Out of these, only the last one, N@B75 mini, is suffering from the immortal lot syndrome (the building is exactly 48 m deep, placed on a 3×3 lot), which would be the reason for you not being able to delete it.

That's why I couldn't buldoze the SOB. I remember building one on my Shosaloza and never been able to get rid of the bastard :angrymore:

gabrielbyrnei

even modifying the pump to a lower monthly cost didnt work. I still get charged 68.000 a month for it.


RippleJet

Modifying the monthly cost won't change the monthly cost for those already plopped in the game, so I assume you already bulldozed and replopped it before taking this picture?

If that is the case, please also make sure you do not have more than one version of your modded waterplant files in your plugins (sub)folders.

Or is this still the one that you couldn't bulldoze?
In that case nothing you modifiy in the exemplar will change it, as it's certainly already plopped.

gabrielbyrnei

searched through all my plugins folder, there are no duplicates

And yes, i bulldozed it and rebuilt it and bulldozed it again, it just doesent go away from my budget

RippleJet

Quote from: gabrielbyrnei on February 26, 2009, 10:47:09 AM
And yes, i bulldozed it and rebuilt it and bulldozed it again, it just doesent go away from my budget

:-\

I'm not sure how the monthly cost was saved if the data type was not correct... and thus I don't know if there even is a solution to it...

One option would of course be to modify it specifically for this city and give it a monthly cost of -68,000.
That would at least reset the monthly cost in the budget...

gabrielbyrnei

and how can i do that? making a special -68.000 ?

RippleJet

-68000 in SInt64 would be FFFFFFFFFFFEB010

You can use Microsoft's calculator (in advanced mode) for this.
Just enter -68000 <enter> and press F5 (which takes you to HEX mode).

QWord = UInt64 / SInt64
DWord = Uint32 / SInt32

Press F6 to get back into decimal mode.

gabrielbyrnei

didnt have a clue i had to convert normal number like 1000 to Sint64. Maybe thats why my water pumps display such crazy numbers, as i simply typed in 400000 and then apply

RippleJet

 :D ::) $%Grinno$%

HEX 0x00400000 = DEC 4,194,304

gabrielbyrnei

Hwn i convert -68000 into Sint64 i get FFFFFFFFFFFF98000

RippleJet

Quote from: gabrielbyrnei on February 26, 2009, 12:11:09 PM
Hwn i convert -68000 into Sint64 i get FFFFFFFFFFFF98000

$%Grinno$%

Try again! ::)

gabrielbyrnei


RippleJet


gabrielbyrnei

but on an earlier post you said

-68000 in SInt64 would be FFFFFFFFFFFEB010