Testobject 2 63 cargo + electricity

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

Post Reply
Vanderbildt
Engineer
Engineer
Posts: 27
Joined: 24 Feb 2016 16:40

Testobject 2 63 cargo + electricity

Post by Vanderbildt »

Here is a other version 63 cargos and electricity in one economy
May someone has the mood to translate the foundry to mnl 5 16 in out

The idee is factorys has to be near tonws because the need worker and electricity.
So we need busses streetcars etc.
Electricity puh i dont like that electricty is a vehicle but i have no clue for a other solution like connection powerplant to substation to factory yes/no.
And please dont ask me for long distance transmisson.
may someone like to work on Electricity, Power Lines, and Industries: viewtopic.php?f=26&t=63356
download/file.php?id=191131
Or translate BSPI.grf - Stockpiling Industries to nml viewtopic.php?f=67&t=84735

economy 1 normal Spi with 63 carcos
economy 5 factorys are near towns
economy 6 some factorys need electricity

OOps in 213 there was no coalmine
Attachments
Prod Foundry.txt
(19.99 KiB) Downloaded 73 times
214.grf
(5.41 MiB) Downloaded 17 times
Last edited by Vanderbildt on 08 Jul 2020 11:35, edited 1 time in total.
User avatar
kamnet
Moderator
Moderator
Posts: 7368
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Testobject 2 63 cargo + electricity

Post by kamnet »

While I'm a big supporter of the idea of "electricity", until you move to NML 0.5, perhaps maybe make the other thing all factories need as "water"?
Vanderbildt
Engineer
Engineer
Posts: 27
Joined: 24 Feb 2016 16:40

Re: Testobject 2 63 cargo + electricity

Post by Vanderbildt »

It will need some time than nml 0.5 oops have you seen the production.
nml 0.4 a clever solution:
switch (FEAT_INDUSTRIES, SELF, foundry_produce1, [
STORE_PERM (waiting_cargo_1,1),
STORE_PERM (waiting_cargo_2,2),
STORE_PERM (waiting_cargo_3,3),
STORE_PERM (5,4),
STORE_PERM (4,5),
STORE_PERM (4,6),
STORE_PERM (min(999,waiting_cargo_1 / LOAD_PERM(4)), 10),
STORE_PERM (min(999,waiting_cargo_2 / LOAD_PERM(5)), 11),
STORE_PERM (min(999,waiting_cargo_3 / LOAD_PERM(6)), 12),
STORE_PERM (min( min(LOAD_PERM(10), LOAD_PERM(11)),LOAD_PERM(12)),13),
STORE_PERM (((LOAD_PERM(13)+1) / 200 + (LOAD_PERM(13) >= 200)),9)
]) {
foundry_checkover;
}

and nml 0.5 :

switch(FEAT_INDUSTRIES, SELF, warehouse_prod_cb2, [
/* Store smallest amount of TOYS or PAPR in permanent slot 4 - amount of TOYS that will be consumed */
STORE_PERM(min(incoming_cargo_waiting("TOYS"), incoming_cargo_waiting("PAPR")), 4),
/* Store smallest amount of SWTR or PAPR in permanent slot 5 - amount of SWTR that will be consumed */
STORE_PERM(min(incoming_cargo_waiting("SWTR"), incoming_cargo_waiting("PAPR")), 5),
/* There will never be more to produce after this step, both TOYS and SWTR will be zero after the produce has executed */
STORE_TEMP(0, 3)
]) {

WHY in the hell is (incoming_cargo_waiting("TOYS") not (incoming_cargo_waiting("1")

may iam wrong but it that is suboptimal.
Vanderbildt
Engineer
Engineer
Posts: 27
Joined: 24 Feb 2016 16:40

Re: Testobject 2 63 cargo + electricity

Post by Vanderbildt »

we have to wait until NML 0.5.3 is ready

viewtopic.php?p=1233868#p1233868
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 26 guests