ECS vectors v1.1.2 (by George) 19/06/2011
Moderator: Graphics Moderators
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Why 05!? Why do you insist on specifying express cargos when you don't want express cargos? 28 \w1 specifies *all* *cargos* *in* *passengers*. Regardless of the presence or absence of any other classes. \w5 specifies all cargos in *at* *least* *one* *of* passengers or express.
You also don't have to have every bit set in one of 28 and 29.
You also don't have to have every bit set in one of 28 and 29.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
oh ... so unless i dont exclude 04 in the 29, and use 01 in 28 i should be coverd 

- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Why? where? Using what grf? Using which version?7of9 wrote:I tried with 29 \w05 29 \wx3FA and that gave me passangers, goods and tourists... so my guess would be that open might be broken, atleast if that were not your intention.
How to reproduce?
Thanks for your attention

If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
No, that's a misunderstanding. 28 \w5 29 \wx3FA is supposed to provide Pax, Goods, Tourists. Since that's apparently what it does, everything is functioning correctly.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
what he saiedbelugas wrote:Why? where? Using what grf? Using which version?7of9 wrote:I tried with 29 \w05 29 \wx3FA and that gave me passangers, goods and tourists... so my guess would be that open might be broken, atleast if that were not your intention.
How to reproduce?
Thanks for your attention

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
I think I found the place I need to modify to make this happen. Can you generate a GRF that assumes it works, so I can test my changes?George wrote:Callback 37 to be exact. But there is a problem - I need to use numbers, so this Callback should use registers 100h-... to store the values in the stack (like Callback 3A does). I supposed that it does not work, because it is not documented.DaleStan wrote:If callbacks 2B, 38, and 3D don't work in Open, then I think you can consider that feature already requested. And if they do, I fail to see the problem.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Hello,
I am using your wonderful ECS cargoes scheme along with DBSetXL (and ECS patch), I have noticed that a couple of textile plants have appeared in the game recently but neither of the connected stations will accept the required supplies of cargo. Was wondering if this is an issue with this patch version, or the ecs cargoes, I'm using the latest nightly r1825 btw.
Attached grf config, game config and savegame. Would appreciate some help.
Best Regards,
Robert
I am using your wonderful ECS cargoes scheme along with DBSetXL (and ECS patch), I have noticed that a couple of textile plants have appeared in the game recently but neither of the connected stations will accept the required supplies of cargo. Was wondering if this is an issue with this patch version, or the ecs cargoes, I'm using the latest nightly r1825 btw.
Attached grf config, game config and savegame. Would appreciate some help.
Best Regards,
Robert
- Attachments
-
- ttdpatch.cfg
- (4.29 KiB) Downloaded 95 times
-
- newgrfw.cfg
- (806 Bytes) Downloaded 154 times
-
- TRP30.SV1
- (371.5 KiB) Downloaded 119 times
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
I have loaded your GRF in r1803 and built a new one. It started accepting the cargo after 3 months of life as intended.Altern8or wrote:I am using your wonderful ECS cargoes scheme along with DBSetXL (and ECS patch), I have noticed that a couple of textile plants have appeared in the game recently but neither of the connected stations will accept the required supplies of cargo.
I have to download and test r1825 now.
-Edit-
Same with r1285. How old is your industry?
Last edited by George on 19 Feb 2008 04:41, edited 1 time in total.
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Ok, I'll do it this evening.DaleStan wrote:I think I found the place I need to modify to make this happen. Can you generate a GRF that assumes it works, so I can test my changes?George wrote:Callback 37 to be exact. But there is a problem - I need to use numbers, so this Callback should use registers 100h-... to store the values in the stack (like Callback 3A does). I supposed that it does not work, because it is not documented.DaleStan wrote:If callbacks 2B, 38, and 3D don't work in Open, then I think you can consider that feature already requested. And if they do, I fail to see the problem.
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Thanks for looking at this for me it is much appreciated
, the textilera at the South of the map "Mondwood" has been there at least 5 game years and the one at the North "Pefingfield" has been there about a year. Mondwood appeared by itself whereas the Pefingfield textile plant was built by me.

- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Please test, ifAltern8or wrote:Thanks for looking at this for me it is much appreciated, the textilera at the South of the map "Mondwood" has been there at least 5 game years and the one at the North "Pefingfield" has been there about a year. Mondwood appeared by itself whereas the Pefingfield textile plant was built by me.
1) a newly build industry this problem
2) this problem happens in a new generated game
P.S. did you use year cheat?
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
1) I created a new textilera in another town and placed a new station next to it but it too would not accept the correct cargo (waited at least 3 months)
2) Strange thing is, I started a new game which had a textilera in it and it will accept the cargo
Just checking if I have the correct versions:
Town Vector beta 4 : 1 Feb 2008 id 4D656FFF [version 7]
Wood Vector beta 3 : 2 Dec 2007 id 4D656FFF [version 7]
Agri Vector beta 3 : 2 Dec 2007 id 4D656FFF [version 7]
Basic Vector beta 4 : 1 Feb 2008 id 4D656FFF [version 7]
Chem Vector : 2 Dec 2007 id 4D656FFF [version 6]
Const Vector : 2 Dec 2007 id 4D656FFF [version 6]
Mach Vector beta 4 : 01 Feb 2008 id 4D656FFF [version 7]
Hope this helps, maybe the textilera does not work after a certain year maybe.
Thanks again,
Robert
P.S. I Did not use year cheat at all.
2) Strange thing is, I started a new game which had a textilera in it and it will accept the cargo
Just checking if I have the correct versions:
Town Vector beta 4 : 1 Feb 2008 id 4D656FFF [version 7]
Wood Vector beta 3 : 2 Dec 2007 id 4D656FFF [version 7]
Agri Vector beta 3 : 2 Dec 2007 id 4D656FFF [version 7]
Basic Vector beta 4 : 1 Feb 2008 id 4D656FFF [version 7]
Chem Vector : 2 Dec 2007 id 4D656FFF [version 6]
Const Vector : 2 Dec 2007 id 4D656FFF [version 6]
Mach Vector beta 4 : 01 Feb 2008 id 4D656FFF [version 7]
Hope this helps, maybe the textilera does not work after a certain year maybe.
Thanks again,
Robert
P.S. I Did not use year cheat at all.
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Try cheats reload industries and purge industries. Let me know if it accepts them later. Try to build a new one and test it.Altern8or wrote:1) I created a new textilera in another town and placed a new station next to it but it too would not accept the correct cargo (waited at least 3 months)
how can many GRFs have one ID?Altern8or wrote:id 4D656FFF
...
id 4D656FFF
before 1920 and after 2175 I suppose. But you have 2037Altern8or wrote:Hope this helps, maybe the textilera does not work after a certain year maybe.

- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Hope this should help. A new test bank that is an oil rigDaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?



- Attachments
-
- testw.rar
- (5.72 KiB) Downloaded 120 times
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Tried "cht: reloadindustries" and "cht: purgeindustries" then built a new Textilera, waited 3 months at least but it did not work.George wrote:Try cheats reload industries and purge industries. Let me know if it accepts them later. Try to build a new one and test it.
how can many GRFs have one ID?Altern8or wrote:id 4D656FFF
...
id 4D656FFF
Thats what TTDX configator reports as file ID, I do not have a clue about this, sorry

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Consider not using Andrexware; it rarely works the way it's supposed to.
Consider using the "debug" button in the newgrf status window in TTDPatch.
Consider using the "debug" button in the newgrf status window in TTDPatch.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Here's what grfdebug.txt says about it, means nothing to me unfortunately but maybe it helps to see if i have the right files and in the right order.
Code: Select all
# ECS. Town vector beta 4 (01 Feb 2008)
newgrf/ECSTOWNW.GRF
# 4D656F91
# Extended Cargo Scheme Copyright © 2005-2008 by George, Zimmlock, Oz, Sanchimaru. All rights reserved. e-mail: georgevb@flashmail.com WWW: http://george.zernebok.net TTDpatch wiki: ECSTownVector Special thanks to Csaboka, Michael Blunck, AgRiG, Wile E. Coyote, SAC Snowed ground tiles are mix of arctic snow and temperate grass by microprose
# Active A:01 F:04
#
# ECS. Wood vector beta 3 (02 Dec 2007)
newgrf/ECSWOODW.GRF
# 4D656F95
# Extended Cargo Scheme Copyright © 2005-2007 by George, dmh_mac, MHz, Raven. All rights reserved. e-mail: georgevb@flashmail.com WWW: http://george.zernebok.net TTDpatch wiki: ECSWoodVector Special thanks to Michael Blunck, AgRiG
# Active A:01 F:00
#
# ECS. Agricultural vector beta 3 (02 Dec 2007)
newgrf/ECSAGRIW.GRF
# 4D656F97
# Extended Cargo Scheme Copyright © 2005-2007 by George, MHz, Raven, Wile E. Coyote, Michael Platov, Lifeblood, DanMacK, Oz, Sanchimaru. All rights reserved. e-mail: georgevb@flashmail.com WWW: http://george.zernebok.net TTDpatch wiki: ECSAgriculturalVector Special thanks to Michael Blunck, AgRiG
# Active A:01 F:00
#
# ECS. Basic vector beta 4 (01 Feb 2008)
newgrf/ECSBASICW.GRF
# 4D656F92
# Extended Cargo Scheme Copyright © 2005-2008 by George, Zimmlock, Tomas Kubes, Patrick. All rights reserved. e-mail: georgevb@flashmail.com WWW: http://george.zernebok.net TTDpatch wiki: ECSBasicVector Special thanks to Michael Blunck, AgRiG, Wile E. Coyote
# Active A:01 F:00
#
# ECS. Chemicals vector (02 Dec 2007)
newgrf/ECSCHEMW.GRF
# 4D656F93
# Extended Cargo Scheme Copyright © 2005 by George, MHz, Raven. All rights reserved. e-mail: georgevb@flashmail.com, george-b@mail.ru; WWW: http://george.zernebok.net Special thanks to Michael Blunck, AgRiG
# Active A:01 F:00
#
# ECS. Construction vector (02 Dec 2007)
newgrf/ECSCONSTW.GRF
# 4D656F96
# Extended Cargo Scheme Copyright © 2005 by George, MHz, 447. All rights reserved. e-mail: georgevb@flashmail.com, george-b@mail.ru; WWW: http://george.zernebok.net Special thanks to Michael Blunck, AgRiG
# Active A:01 F:00
#
# ECS. Machinery vector beta 4 (01 Feb 2008)
newgrf/ECSMACHW.GRF
# 4D656F94
# Extended Cargo Scheme Copyright © 2005-2008 by George, Lifeblood, Oz, Prebral. All rights reserved. e-mail: georgevb@flashmail.com WWW: http://george.zernebok.net TTDpatch wiki: ECSMachineryVector Special thanks to Michael Blunck, AgRiG, Zimmlock, Wile E. Coyote
# Active A:01 F:00
#
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
Okay... So that's *completely* not going to work.George wrote:Hope this should help. A new test bank that is an oil rigDaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?. Only callback 37 coded. The returned value is current day now
Currently always 0
The textref stack is filled for all accepted cargos before the line is drawn.
Would "Place the number of additional bytes required in (the low byte of) register 100h. The bytes will be copied starting from the low byte of register 101h." work? With documentation about how many bytes are available, of course. If I'm reading everything correctly, there's at least four bytes per cargo. More when fewer cargos are accepted (or produced), of course.
Code: Select all
# 4D656F91
# 4D656F95
# 4D656F97
# 4D656F92
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008
We have skip words in stack command for strings, and 10 words in stack (in callback 3A). Because currently we expect only 3 strings to use stack, I think we can take it this way unless we get an easy way to have different stacks for every string.DaleStan wrote:Okay... So that's *completely* not going to work.George wrote:Hope this should help. A new test bank that is an oil rigDaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?. Only callback 37 coded. The returned value is current day now
Currently always 0
The textref stack is filled for all accepted cargos before the line is drawn.
Sorry, a bit confused with description. If a string for cargo 1 needs words 1, 2, 3 in stack, and a string for cargo 2 needs words 4, 5, 6, than what should go to registers?DaleStan wrote:Would "Place the number of additional bytes required in (the low byte of) register 100h. The bytes will be copied starting from the low byte of register 101h." work?
I'd prefer 10 words per all the strings, than 1 per string, so 1 string could use 5 wprds in stack, while the could not use it.DaleStan wrote:With documentation about how many bytes are available, of course. If I'm reading everything correctly, there's at least four bytes per cargo. More when fewer cargos are accepted (or produced), of course.
These numbers are correct.DaleStan wrote:Do any of those numbers look something like the numbers you posted before? Except that they're correct, unlike whatever confusion the Andrexware had?Code: Select all
# 4D656F91 # 4D656F95 # 4D656F97 # 4D656F92
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 17 guests