No Hastati in Roman Produce List FIXED

Post Reply
User avatar
Aral_Yaren
Posts: 342
Joined: Fri Nov 06, 2020 12:45 am

No Hastati in Roman Produce List FIXED

Post by Aral_Yaren »

In the Roman produce list there isn't Hastati icon eventhough it's produceable.
There shall be times... when people across the world shall live in peace and harmony through their various diversities. I shall wait for it, even though it costs my life...
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List

Post by Endru1241 »

That is very weird.

@Stratego (dev) Do you have any idea what could make a unit not appear in propsheet Produces list of the budilding, that unit can be trained from?
This is the definition:
"trnBuilders":{"categories":["AND(","HIDDEN_TRAINING_CULTURAL","U_ROMAN",")"]},
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

ithink these are the things needed to be able to produce a unit:
1. shopitem owned by player
2. listed in buildables as trainable unit
3. races set properly (except in AOS)
4. the unit terrain walkability fits to building (and surrounding tiles)
5. the builders list is set properly on unit.
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List

Post by Endru1241 »

Stratego (dev) wrote: Mon Oct 18, 2021 10:50 am ithink these are the things needed to be able to produce a unit:
1. shopitem owned by player
2. listed in buildables as trainable unit
3. races set properly (except in AOS)
4. the unit terrain walkability fits to building (and surrounding tiles)
5. the builders list is set properly on unit.
All are true (except 3.).

But there is no problem with unit being trainable.
It is OK.
When I click on unit help - prosheet shows Roman Garrison in builders section. Which is OK.

The problem is in propsheet section "Produces" of Roman Garrison. There is no Hastati shown there. Just as well as no Velites.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

i have no idea, atm, i need to check, if u can narrow the problem would be awesome (eg. figuring out what is the difference bets an appearing an non appearing unit and trying if set that way it shows.)
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List

Post by Endru1241 »

Both of those not appearing units were on the list - "listNotBuild" before update to version 1.145.
Maybe there some old remaining code somewhere?
That's the only big difference I can think of.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

i dont understand, why we want there be listed a non buildable unit?

it is not a bug but proper working.

(the earlier similar problem was about the mapeditor not listed the ones in "listNotToBuild" - so that was to be fixed and i fixed already)
User avatar
makazuwr32
Posts: 7830
Joined: Tue Oct 17, 2017 9:29 am
Location: Moscow, Russia

Re: No Hastati in Roman Produce List

Post by makazuwr32 »

But it is now available for players in normal games. It is not anymore map editor unit...
makazuwr32 wrote: Mon Sep 16, 2019 7:54 amWhen you ask to change something argument why...
Put some numbers, compare to what other races have and so on...
© by Makazuwr32™.
AoF Dev Co-Leader
Image
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

Endru just said they are in non buildable list - or i misunderstood?

if so than i still need help what is the difference compared to other units.
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List

Post by Endru1241 »

Stratego (dev) wrote: Thu Oct 28, 2021 7:40 pm Endru just said they are in non buildable list - or i misunderstood?

if so than i still need help what is the difference compared to other units.
Endru1241 wrote: Thu Oct 28, 2021 2:05 pm Both of those not appearing units were on the list - "listNotBuild" before update to version 1.145.
Maybe there some old remaining code somewhere?
That's the only big difference I can think of.
Right now they are in listBuild, otherwise it wouldn't be possible to train them.
I don't see anything in json, that could cause such weird behaviour.
E.g. exactly the same trnBuilders line exists in Senator, but it appears without problems. E.g. They both have urlImage with self image reference, but I checked removing it.
I wrote it because both units are quite old (ids 174 and 175) and existed well before jsonisation, so maybe, just maybe - if I don't see a difference in json it's not in json at all, but in the code.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

in code there is not thing left about units.
ok i will debug it then -thanks!

so again: problem is "hastati" and "Velites" not appearing in roman garrison buildlist section of its statsheet (the html based one) - right?
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List

Post by Endru1241 »

Stratego (dev) wrote: Fri Oct 29, 2021 6:29 am in code there is not thing left about units.
ok i will debug it then -thanks!

so again: problem is "hastati" and "Velites" not appearing in roman garrison buildlist section of its statsheet (the html based one) - right?
Exactly.
Everything else seems to be OK.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List

Post by Stratego (dev) »

good news: you were to totally right, i found traces of hastati set to non buildable in code (was nto removed when we removed all units from code) now i have removed all! (may were there listed in the in-code lists of buildable-nonbuildable-techs lists!)
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: No Hastati in Roman Produce List IMPLEMENTED

Post by Endru1241 »

So they were in completely different place, than unit definitions.
Understandable that this small line of code could be skipped.

Well, it's good you managed to find it.
Thanks.
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: No Hastati in Roman Produce List IMPLEMENTED

Post by Stratego (dev) »

yes, thanks! daniel
Post Reply

Return to “Units/techs/effects”