1. If you are going to register on XLNation, please make sure you do not use a proxy server.
    If you use a proxy server your registration will most likely get blocked due to spammers and hackers using proxy servers to hide their real IP address.

    If your using your home or work IP address and have not received your registration email, check your spam folder.
    PLEASE DO NOT ASK TO HAVE YOUR ACCOUNT DELETED IF YOU HAVE POSTED IN THE FORUM! If so we do not delete accounts due to the mess it can make on the forum.
    Cerrar notificación

Upgrades

Tema en 'Modding Help Quarter' comenzado por Lokentaz, 8 de Noviembre de 2018.

Tags:
  1. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    Hi mates!

    Do you have details about upgrades working?

    I know how to add them, no problem with that, but when my test mod is in the game my own upgrades are mixed with the upgrades from other mods. This is really annoying because the "intruding" upgrades give an impression of anarchy and, above all, take up useful places.

    In brief, I'd like to display only my upgrades in my mods. Is it possible to fix that with a kind of tag?
     
  2. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    No answer land. This question looks like a poser.
     
  3. kipate

    kipate Governor

    Se incorporó:
    23 de Agosto de 2014
    Mensajes:
    2.383
    Me gusta recibidos:
    2.981
    A Lokentaz le gusta esto.
  4. Drazicdesign

    Drazicdesign Ambasidor

    Se incorporó:
    24 de Agosto de 2014
    Mensajes:
    1.216
    Me gusta recibidos:
    3.221
    It seems to me that you could use the same code that is used for industrial buildings
    I seem to have seen, in the .class file, a code allowing an update of the building.
    (at the bottom of the .class file)

    upload_2018-11-13_20-59-23.png
     
    A Lokentaz y kipate les gusta esto.
  5. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    Thanks for the answer Drazic!
    To allowing the update of a building, we have to add BuildingUpgrade and UP_1 (or UP_2... till UP_30) in the tag line.
    Do you talk about that or about another code?
     
  6. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    @Drazicdesign, I've found what you talk about in the class of the buiding (b_ind_pp03_t3.class). I see this code for the first time .

    Capture.PNG

    EDIT: I also found this code at the beginning of the upgraded building's class file (b_ind_pp03_t3_upgrade.class).

    Capture2.PNG

    It looks like an Id code. Maybe this allowing buildings upgrades in another way than using the tag line. I don't know if there is a list of this codes somewhere or if it's possible to create them we need to.
     
    A Drazicdesign le gusta esto.
  7. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    Upgrades are a pain in the ass! The game displays upgrades (mix of original game buildings and other mods buildings) in my K&B house mod even though there is no upgrade codification in the class files of this mod.
     

    Archivos adjuntos:

  8. Drazicdesign

    Drazicdesign Ambasidor

    Se incorporó:
    24 de Agosto de 2014
    Mensajes:
    1.216
    Me gusta recibidos:
    3.221
    Yes, it is indeed this code.
    For cons, I do not know how it works,
    And unfortunately, currently my life allows me not to be able to help you more on this subject.
    I hope to be able to help you very soon as soon as I have found a situation a little more stable.
     
    A Lokentaz le gusta esto.
  9. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    No problem, mate. I hope everything will be fine for you.
     
  10. kipate

    kipate Governor

    Se incorporó:
    23 de Agosto de 2014
    Mensajes:
    2.383
    Me gusta recibidos:
    2.981
    Is this the same for all buildings, or just for mods? Also, maybe it is due to the mod being a non-standard building?
    What happens for the in-game buildings? Do they block such upgrades?
     
  11. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    It's a good question. I have in mind a T1 or a T2 in-game factory which display both kinds of upgrades but I'm not sure. It could be the sheet metal factory. I'll verify that this evening. Maybe in T1 or T2 residences also.
     
  12. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    I confirm. Here is a T2 in-game residence with custom upgrades. :whatever:

    capture.png
     
    A Myname le gusta esto.
  13. kipate

    kipate Governor

    Se incorporó:
    23 de Agosto de 2014
    Mensajes:
    2.383
    Me gusta recibidos:
    2.981
    That's kind of annoying -.-
     
  14. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    Indeed. I'll keep searching if it is possible to compartmentalize the upgrades but I'm not sure that the creators of the game thought about it.
     
    A kipate le gusta esto.
  15. Lokentaz

    Lokentaz Governor

    Se incorporó:
    9 de Febrero de 2015
    Mensajes:
    404
    Me gusta recibidos:
    625
    I tried this way by creating a code that I inserted in each class file of my test mod. It didn't work. So, either there is a format to respect or there is a list somewhere. Maybe even both. They aren't in the tags.cfg file.
     
    A kipate le gusta esto.

Comparte esta página