View unanswered posts | View active topics It is currently Thu Mar 28, 2024 3:18 am



Reply to topic  [ 5 posts ] 
 Spontaneous credits 
Author Message
Chief Warrant Officer

Joined: Sun Apr 17, 2005 2:00 am
Posts: 194
Location: USA
Unread post Spontaneous credits
Now this is not something I particularly care about, but I just thought I'd report it and explain how it seems to be working.

If any amount of credits are placed in a citadel for any amount of time, then the credits will generate compounded interest at a rate set by the SysOp (which is configurable for each planet type.)

Most people would say "No it doesn't. If you only put 1 credit in the citadel, it can't possibly generate interest."

Well... Not exactly. Interest is calculated down to several decimal points. So even though the DISPLAYED total of credits is "1," there is actually interest being generated on a sub-atomic... Er... I mean "fractional" level. In other words, the interest being generated is .9 or less (something like that.) I'm not sure how many decimal places the game calculates interest, but it appears to be several!?

So if a player places their daily earnings on a particular planet and then removes it the next day, they're only removing the "whole number" amount. The fractional portion is inaccessible to the player or SysOp. Over time, a whole number will be produced and begin to build visibly.

This results in the "spontaneous" generation of credits on planets after a period of time. The amount generated is not worth the effort (hence my disdain for it.) But it might be a good source of data corruption for long-running games.

_________________
The New Order
66.26.112.116:2002

MicroBlaster:
http://www.microblaster.net/ServerDetai ... erverid=66

One day, the entire Tradewars 2002 fanbase will tremble at the mere mention of "Lionmane." Too bad it's not my name!?!?! -Krovach


Wed Nov 07, 2018 6:55 am
Profile
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Spontaneous credits
This is not a bug. This is the way the program is designed to operate.

It can not cause data corruption over time. How could it, as it is simply a double field in the planet record. Planet records are a fixed size, and this is a fixed data field.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Thu Nov 08, 2018 4:30 am
Profile ICQ YIM WWW
Chief Warrant Officer

Joined: Sun Apr 17, 2005 2:00 am
Posts: 194
Location: USA
Unread post Re: Spontaneous credits
One of the sources of data corruption is not resetting variables. By not resetting the value of this variable when the money is removed from the planet, it's just asking for data corruption.

Are you saying that (Gary & Ann Martin?) intended for credits to spontaneously generate after the credits are removed from the planet?

_________________
The New Order
66.26.112.116:2002

MicroBlaster:
http://www.microblaster.net/ServerDetai ... erverid=66

One day, the entire Tradewars 2002 fanbase will tremble at the mere mention of "Lionmane." Too bad it's not my name!?!?! -Krovach


Fri Nov 09, 2018 9:06 am
Profile
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Spontaneous credits
the credits are generated because of the time difference between the amount you see when decide to remove them and when you actually remove them. Mostly 1 credit, thought I have seen it as high as 12 or 13

H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Fri Nov 09, 2018 1:36 pm
Profile WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Spontaneous credits
Ok, This is a bug... When all credits are removed from the planet, the remainder should be removed and the value set to a true zero (0.0000000).

There is still no chance of data corruption from this, unless you are trying to pull a SuperMan III bank robbery :)

@Helix, That is not what he is referring to. When all credits are removed and the display reads Zero, there is still some value there (i.e. 0.34629845), which is still accumulating interest. When this value reaches 1 from accumulated interest, a single credit spontaneously appears on the planet.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Fri Nov 09, 2018 10:07 pm
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.