Page 1 of 5

Orders patch - percentile and FIFO loading, cargo display...

Posted: 13 Dec 2004 08:34
by nzhook
Updated version of the new orders patch (last updated: 20 Dec 2004 for r1148)

Heres the latest version of the order system patch I started on with the FIFO thread.

These are the options now available with this patch:

:idea: Loading Percentiles
You can load a train to a minimum of 10%, 20%, 30%.... instead of just a full load.
To use this use the new up/down arrows on the orders menu.

:idea: Exact loading
Percentile loading is only a guide to when to stop, if more exists it will continue loading. If however you want to force the train to stop loading when the perceile has been hit, use the Exact loading option.
-- use the blank button next to the arrows

:idea: Prioritity loading (button works again)
Prioritity loading is used to allow some trains to override already loading trains. (eg. a smaller train can take prioritiy over a mammoth train, so money keeps flowing) there are two available ways to use this, the default is to have all NON prioritity trains to load in the normal way (without FIFO) prioirty trains will load using the FIFO method.
The other method is to enable in patch menu option (under Stations) the ablity for all trains to use FIFO/Improved loading, prioritiy trains will always load before a normal train (even if it arrives after a normal train), normal trains will then also FIFO if no prioritiy trains are in the station.

:idea: Improved loading -> FIFO loading
The loading method has been converted from the original HackyKid/Tron improved loading system to be real First In First Out (FIFO) loading.

:idea: Load now shows on status bar (Patch)
The amount of cargo is now shown on the 'Loading/Unloading', ';Heading for xxx' status bar. So in the corner you can quickly see how loaded a train is.


Started, but not in GUIs:
* Min and Max waiting times (Just needs GUI and testing)
* Ablity to choose if the full load is based on cargo or train (per queue item, not globally) (Just needs GUI and testing)
* Expand size of orders window based on patch setting (this will be hard)
-- this is currently set at 10 instead of 6... needs a way to be more dynamic.

Still Todo/Thoughts:
* Move the FIFO ablity to the station gui
* Add default order options for station (eg. clicking goto on a station will use the default options for that station)
* Prioritity trains given more chances of being allowed to continue first at a signal
* Remove any of the patch options this will add gui items for
* Possibly also a dont stop if no room option. (Im going to need a new window I think)
* Leave if another X trains are at the station.


NOTE: Currently to avoid a save game bump becuase of the order options the above settings are not saved (sorry). Some of the options will automatically start working (eg. once a train arrives at a station it will start to FIFO. -- If a train was already at the station when loading it will be treated as a lod any situation until it arrives at another station)

Please feel free to apply this patch and let me know of any bugs you find (or even suggestions for the above list) :idea:

Posted: 13 Dec 2004 10:33
by ThorRune
While your at it, could you lengten the orders window? 6 orders at a time just isn't enough.

Sounds great tho. Can't wait for FIFO.

Posted: 15 Dec 2004 11:24
by ThorRune
How come only i responded? This sounds great.

*installs linux so i can compile it*

Posted: 16 Dec 2004 09:06
by nzhook
ThorRune wrote:How come only i responded? This sounds great.

*installs linux so i can compile it*
You dont need linux to run it :) Just apply it to the source and compile. (should work, and would be good to be able to have someone post it.. might get more comments :) )

Yes, im still working on it.... just need a good spot of time, should be an update Monday (Nz Time)

Posted: 19 Dec 2004 13:11
by nzhook
Just updated the patch, it looks like modifying a post dosnt update its position, also reworded the description.

Posted: 19 Dec 2004 15:31
by Kebabrov
Hey,

This looks great!! I havent tried it, but i like the idea.

btw, do u mean Exact instead of Excat, or is it just a typo in your post?

Posted: 01 Sep 2005 12:40
by Sacro
Is anyone still working on this patch? Or would anyone be interested if I tried to get it working on the latest SVN?

Posted: 01 Sep 2005 12:48
by bobingabout
look at the dates, i think you've got the job.

Posted: 01 Sep 2005 13:08
by Sacro
Yeah, thats what i thought would happen!

btw, shouldnt you be working :wink:

Posted: 01 Sep 2005 13:31
by FoxAlpha
Nice to see that anyone interested in this patch.

When u get it working to the latest SVN, i include it in my integrated build 4.5 (see sig.)

This patch sounds very cool and when it works it could improve the gameplay.

Pls tell me if u get it work.

Fox

Posted: 01 Sep 2005 13:35
by Sacro
Yeah course Fox, and theres also my day length patch that needs a bit of polishing too :wink:

Posted: 03 Sep 2005 11:10
by nzhook
Its on the back burner.

I had scaled down the patch to smaller bits but couldnt get the stuff I wanted to pass via multiplayer or into save games. I also changed computers and havnt reinstalled linux so I can have my compiling environment back. Not to mention the normal limiting factors kicking in :( (eg. work)

I might try and track down the most recent version of the code I had which would get you upto a newer version but it will still take a little work to get it upto the latest SVN.


edit: Heres a diff against r2235 I cant remember exactly how finished this was at this point, as I said I broke it down into smaller bits as I wasnt having much luck getting patches into the main trunk so I though I would make seperate patches for each thing. -- This is the percentile loading stuff.

Posted: 03 Sep 2005 11:53
by bobingabout
sacro spent all last night working on converting it to the latest SVN. he said its going to take a while.

Posted: 03 Sep 2005 12:34
by SirkoZ
Great! I hope Sacro can finish it today - FoxAlpha will probably release the new build of Integrated_nightly tomorrow, so just PM him the finished patch. :D

Posted: 04 Sep 2005 22:57
by Sacro
It's almost done, just figuring out a few last things, here is as far as ive got, but it doesnt compile yet, sorry :oops:

Posted: 05 Sep 2005 03:03
by SirkoZ
Great!

Well - I have looked at it - and to understand it thoroughly, I would have to look quite a bit more at it. :)
In any case - if you manage to complete it in the next couple of days, PM one copy to FoxAlpha too, so it can be included in the upcoming Integrated_nightly. 8)


EDIT: BTW - Sacro - is 987 and 1020.5 any good of a result for that funny penguin game you got on your website? :lol:

Posted: 08 Sep 2005 02:46
by FoxAlpha
How about this patch ?

I am shortly before finishing my next I4.5.

U wrote that it wont compile now.
What do u mean how long u need to finished ?

Fox

Posted: 11 Sep 2005 22:24
by Sacro
Sorry, haven't been able to get online in a while, still waiting to get my own place with net access. I'm still working on it, but I have just started college, and had a bit on my mind, i should have it going soon though, sorry about the wait.

SirkoZ: not updated my site in ages! i really should though

Posted: 11 Sep 2005 22:37
by SirkoZ
:)

Great!
Well - drop a line, when it's finished, so a new release of integrated nightly can be made.

Posted: 12 Sep 2005 16:32
by Psycho Dude
Sounds nice, especially the part in the planning list about priority trains, the thing I've always wanted in my busy train networks, would increase my profits a lot without having to create the most f*** up train networks to prevent too many cross-tracks.