Search found 17 matches

by JokerAce
Sat May 27, 2017 19:40 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

For TKI, I'm working on a completely rewritten alternative scheduler (newscheduler) which DOES run via CLI directly. Very different beast. I'm also changing the way a number of the schedulers work. For example, sched_tow will be eliminated entirely. I've located all the spots where a ship could mov...
by JokerAce
Thu May 25, 2017 15:34 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

Would it be easier to correct the negative using abs() ... No negative numbers result and it wouldn't limit the math output artificially. Would this be a viable way to simplify the correction? I haven't looked at the code yet but I'm guessing it would mean only minor changes would be needed versus ...
by JokerAce
Thu May 25, 2017 15:23 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

Anyway the 2 versions were as follows: Exact same version recoded to use the Unity Engine for both Windows, Mac and Linux. A WebGL version "might" also be created for playing in a browser at a later date if possible. A completely new version based in the BNT Universe but as a MMO aspect, ...
by JokerAce
Thu May 25, 2017 06:33 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

To-do with your DB question are you referring to your Port issue? If so then you need to clamp the values like the following: $newValue = 90000; // clamp newValue to a range of 0 to 100,000. $clampedValue = ClampValue(0, 100000, $newValue); // Clamp function within minValue and maxValues. function ...
by JokerAce
Thu May 25, 2017 03:56 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

When you first run the page, say the main index page: http://bnt.jokersworld.com/index.php you will see the timer go negative then back to the value set in the config which is 300 seconds i.e. 5 mins. When ever it displays a negative number when the page is first refreshed, scheduler has either mis...
by JokerAce
Wed May 24, 2017 23:36 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

Cool, thanks. No rush. Enjoy your program. Ok, so 20 turns every hour, hmmm. That might be an issue. I would of set $sched_ticks to like 1 (every 60 seconds) which makes things easier. I would then set $turns_per_tick to 20 (I.e. your 20 turns) still fine so far. Now here is the gotcha, $sched_turn...
by JokerAce
Wed May 24, 2017 21:53 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

Okay... That is exactly what I needed to know to fix my turn scheduling. Thank you! One other question about turns and ticks though.... Is there a way to make it grant like 20 turns at once at hour intervals? It's not critical but it would be nice. I am watching TV at the moment, but I will look in...
by JokerAce
Wed May 24, 2017 21:30 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

Man I hate this code :( :) It does pose a challenge. I'm a glutton for punishment. I have a thing for solving problems. I ran into the upper limits of BIGINT in the database so I've been going through trying to covert the references to decimal instead (no actual decimals though). It was working rea...
by JokerAce
Wed May 24, 2017 21:12 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

You have the game update every 5 mins, you cannot just change the sched values to 1 in the config file and hope it will change in game, you need to either recreate the universe (long winded way) or change them in the config and then change ticks_full in the database table scheduler for each sched y...
by JokerAce
Wed May 24, 2017 16:23 UTC
Forum: Game Announcements
Topic: Trade Wars 2117
Replies: 35
Views: 57835

Re: Trade Wars 2117

That's great! That would be really helpful. Well, there is still some really annoying bugs in it where it says its out of sync when its not, this is due to how scheduler works. So looking into that now. *** fixed the out of sync bug *** Just need to wait another 15 or so mins to see if it works on ...