ECS vectors v1.1.2 (by George) 19/06/2011

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Do you use ECS with TTDP?

I use ECS under TTDP
5
3%
I use ECS under TTDP and OTTD
6
4%
I use ECS under OTTD
158
93%
 
Total votes: 169

DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DaleStan »

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.
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
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DJ Nekkid »

oh ... so unless i dont exclude 04 in the 29, and use 01 in 28 i should be coverd :)
Member of the
ImageImage
User avatar
belugas
OpenTTD Developer
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

Post by belugas »

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.
Why? where? Using what grf? Using which version?
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
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DaleStan »

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
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DJ Nekkid »

belugas wrote:
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.
Why? where? Using what grf? Using which version?
How to reproduce?
Thanks for your attention :)
what he saied :)
Member of the
ImageImage
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DaleStan »

George wrote:
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.
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.
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?
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
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

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
Attachments
ttdpatch.cfg
(4.29 KiB) Downloaded 95 times
newgrfw.cfg
(806 Bytes) Downloaded 154 times
TRP30.SV1
(371.5 KiB) Downloaded 119 times
User avatar
George
Tycoon
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

Post by George »

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 loaded your GRF in r1803 and built a new one. It started accepting the cargo after 3 months of life as intended.
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.
Image Image Image Image
User avatar
George
Tycoon
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

Post by George »

DaleStan wrote:
George wrote:
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.
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.
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?
Ok, I'll do it this evening.
Image Image Image Image
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

Thanks for looking at this for me it is much appreciated :bow: , 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.
User avatar
George
Tycoon
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

Post by George »

Altern8or wrote:Thanks for looking at this for me it is much appreciated :bow: , 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.
Please test, if
1) a newly build industry this problem
2) this problem happens in a new generated game
P.S. did you use year cheat?
Image Image Image Image
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

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.
User avatar
George
Tycoon
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

Post by George »

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)
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:id 4D656FFF
...
id 4D656FFF
how can many GRFs have one ID?
Altern8or wrote:Hope this helps, maybe the textilera does not work after a certain year maybe.
before 1920 and after 2175 I suppose. But you have 2037 :?
Image Image Image Image
User avatar
George
Tycoon
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

Post by George »

DaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?
Hope this should help. A new test bank that is an oil rig :lol: . Only callback 37 coded. The returned value is current day now :roll: Currently always 0 :(
Attachments
testw.rar
(5.72 KiB) Downloaded 120 times
Image Image Image Image
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

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.
Tried "cht: reloadindustries" and "cht: purgeindustries" then built a new Textilera, waited 3 months at least but it did not work.
Altern8or wrote:id 4D656FFF
...
id 4D656FFF
how can many GRFs have one ID?

Thats what TTDX configator reports as file ID, I do not have a clue about this, sorry :oops:
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DaleStan »

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.
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
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

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
# 
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by DaleStan »

George wrote:
DaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?
Hope this should help. A new test bank that is an oil rig :lol: . Only callback 37 coded. The returned value is current day now :roll: Currently always 0 :(
Okay... So that's *completely* not going to work.

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
Do any of those numbers look something like the numbers you posted before? Except that they're correct, unlike whatever confusion the Andrexware had?
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
Altern8or
Engineer
Engineer
Posts: 37
Joined: 25 Sep 2005 00:44
Location: Aberdeen, Scotland

Re: ECS implementation by George: ECS vectors. Beta 4 11/01/2008

Post by Altern8or »

Yes, they do.
User avatar
George
Tycoon
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

Post by George »

DaleStan wrote:
George wrote:
DaleStan wrote:Can you generate a GRF that assumes it works, so I can test my changes?
Hope this should help. A new test bank that is an oil rig :lol: . Only callback 37 coded. The returned value is current day now :roll: Currently always 0 :(
Okay... So that's *completely* not going to work.
The textref stack is filled for all accepted cargos before the line is drawn.
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: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?
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: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.
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:

Code: Select all

# 4D656F91
# 4D656F95
# 4D656F97
# 4D656F92
Do any of those numbers look something like the numbers you posted before? Except that they're correct, unlike whatever confusion the Andrexware had?
These numbers are correct.
Image Image Image Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 17 guests