Results 1 to 12 of 12

Thread: Trading textures (models): SPQR to EB

  1. #1

    Default Trading textures (models): SPQR to EB

    Hi everybody, this is my first post here in the forum.

    I´ve just made download of EB, and as far as I´ve played, I can tell
    it's a great mod.

    But, even not being historically correct, I would like to make a personal change here in my own installation of EB.

    Have you guys ever played the SPQR mod? Well, I have, and it got
    that classical Spartan Hoplite ( with the cape and everything else). So,
    I was wondering if it´s possible to use that model in EB.

    You see, I just the model. The stats, pictures and everything else can and should remain as in EB (if possible).

    So, is there anyway to do it? If so, could somebody tell me?

    Thanks in advance! And keep on the amazing work you´ve been doing.

    Greetings all the way from Brasil!

  2. #2
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Trading textures (models): SPQR to EB

    Quote Originally Posted by andrefael
    Hi everybody, this is my first post here in the forum.

    I´ve just made download of EB, and as far as I´ve played, I can tell
    it's a great mod.

    But, even not being historically correct, I would like to make a personal change here in my own installation of EB.

    Have you guys ever played the SPQR mod? Well, I have, and it got
    that classical Spartan Hoplite ( with the cape and everything else). So,
    I was wondering if it´s possible to use that model in EB.

    You see, I just the model. The stats, pictures and everything else can and should remain as in EB (if possible).

    So, is there anyway to do it? If so, could somebody tell me?

    Thanks in advance! And keep on the amazing work you´ve been doing.

    Greetings all the way from Brasil!
    Should be. Do you have the SPQR mod yourself? If you do I can give you some instructions how to do it. Now do you wan't the whole unit or just to replace the EB Spartans for SPQR model?

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  3. #3

    Default Re: Trading textures (models): SPQR to EB

    Quote Originally Posted by The Errant
    Should be. Do you have the SPQR mod yourself? If you do I can give you some instructions how to do it. Now do you wan't the whole unit or just to replace the EB Spartans for SPQR model?

    Well, I do have the SPQR mod here in my PC!
    I want the appearence of the unit on the battlefield (the spartans and the greek general bodyguard [they are the same right]) of EB to look like the Spartans in SPQR.

    Thanks for the reply.

  4. #4
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Trading textures (models): SPQR to EB

    Quote Originally Posted by andrefael
    Well, I do have the SPQR mod here in my PC!
    I want the appearence of the unit on the battlefield (the spartans and the greek general bodyguard [they are the same right]) of EB to look like the Spartans in SPQR.

    Thanks for the reply.
    OK. First things first. Open the data folder on the SPQR mod. Find me the unit stats for the SPQR spartans (In EB they would be in RTW\EB\Data\export_descr_unit file. It should be something similar in SPQR).

    Also see if you can drag up the battlefield model for the unit (In EB it's found in RTW\EB\Data\descr_model_battle).

    Copy both the unit stat entry and the battle model entry to this post. I need to see what I'm working with. Oh the EB files I mentioned are important, because those are the ones you will be changing. So you better know where they are.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  5. #5
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Trading textures (models): SPQR to EB

    He wants to retain their stats though, so I don't think EDU is necessary.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  6. #6

    Default Re: Trading textures (models): SPQR to EB

    Ok, this is the EDU for them:

    type greek hoplite spartan
    dictionary greek_hoplite_spartan1 ; Spartan Hoplites
    category infantry
    class spearmen
    voice_type Medium_1
    soldier greek_hoplite_spartan_pylos, 37, 0, 3.5
    officer spartan_standard
    officer spartan_officer
    mount_effect horse +8, chariot +8, camel +8
    attributes sea_faring,hide_forest,frighten_foot,can_sap,very_hardy
    formation .75, 1, 1, 2, 5,square
    stat_health 3, 0
    stat_pri 28,22, no, 0, 0, melee, simple, piercing, spear, 0, 0.8
    stat_pri_attr spear
    stat_sec 28,20, no, 0, 0, melee, simple, piercing, sword, 0, 0.6
    stat_sec_attr no
    stat_pri_armour 6, 46, 5, metal
    stat_sec_armour 0, 1, flesh
    stat_heat 2
    stat_ground 4, 0, 0, 0
    stat_mental 99,disciplined,highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 0, 1200, 400, 130, 190, 1220
    ownership greek_cities, slave



    And now the descr_model_battle:


    type greek_hoplite_spartan_pylos
    skeleton fs_fast_o_f_spearman, fs_fast_swordsman
    indiv_range 40
    texture merc, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    texture greek_cities, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    texture slave, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    model_flexi_m data/models_unit/SPQR_atg_redspartan_high.cas, 8
    model_flexi_m data/models_unit/SPQR_atg_redspartan_med.cas, 15
    model_flexi_m data/models_unit/SPQR_atg_redspartan_low.cas, 30
    model_flexi data/models_unit/SPQR_atg_redspartan_lowest.cas, max
    model_sprite 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.spr
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.spr
    model_sprite slave, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.spr
    model_tri 400, 0.5f, 0.5f, 0.5f



    Here they are!

    By the way, is it possible to make the spartans in EB to use swords? ( I think I´m asking too much, sorry =/ )

    Thanks again!

  7. #7
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Trading textures (models): SPQR to EB

    Just so you know, if you put those EDU stats into EB they'll massacre every other unit for less cost than any other melee unit. I don't think it will be very fun.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  8. #8

    Default Re: Trading textures (models): SPQR to EB

    Certainly not!!

    I better sticky up with the EB stats

  9. #9
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Trading textures (models): SPQR to EB

    Now for the fun part. Make a backup copy of both the export_descr_unit and descr_model_battle file in EB. Save them somewhere in a separate folder so they don't get lost.

    Bovi is right. The stats in EB are completely different from those in SPQR so porting the unit over as such will be no fun at all. Unless you want to have an über unit that chews trough everthing.

    Now this is the fun part. Screwing this up will either make or break your game.
    Go into the models_unit and sprites folders in your SPQR\Data folder and copy all the files that the battle model is referring to. I'll make a list:

    texture greek_cities, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    model_flexi_m data/models_unit/SPQR_atg_redspartan_high.cas, 8
    model_flexi_m data/models_unit/SPQR_atg_redspartan_med.cas, 15
    model_flexi_m data/models_unit/SPQR_atg_redspartan_low.cas, 30
    model_flexi data/models_unit/SPQR_atg_redspartan_lowest.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.s pr

    Find these. And copy them to their respective locations in the EB\Data folder.

    Once you have done that. Copy the following model info into the DMB (descr_model_battle) file of your EB installation.

    Code:
    type greek_hoplite_spartan_pylos
    skeleton fs_fast_o_f_spearman, fs_fast_swordsman
    indiv_range 40
    texture greek_cities, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    model_flexi_m data/models_unit/SPQR_atg_redspartan_high.cas, 8
    model_flexi_m data/models_unit/SPQR_atg_redspartan_med.cas, 15
    model_flexi_m data/models_unit/SPQR_atg_redspartan_low.cas, 30
    model_flexi data/models_unit/SPQR_atg_redspartan_lowest.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.s pr
    model_tri 400, 0.5f, 0.5f, 0.5f
    Now open up the EB EDU (edit_descr_unit) file. Find entries ;326 and ;435 which are the Spartan Hoplites and Greek General's Bodyguard respectively. Now the entry for the Spartans looks like this:

    Code:
    ;326
    type             hellenistic infantry spartiateshoplitai
    dictionary       hellenistic_infantry_spartiateshoplitai      ; Spartiates Hoplitai
    category         infantry
    class            heavy
    voice_type       General_1
    soldier          hellenistic_infantry_spartiateshoplitai, 30, 0, 1.22
    officer          ebofficer_hellenic_officer
    officer          ebofficer_hellenic_standardbearer
    mount_effect     elephant -1
    attributes       sea_faring, hide_forest
    formation        0.76, 1.2, 1.6, 2.4, 4, square
    stat_health      1, 0
    stat_pri         16, 8, no, 0, 0, melee, simple, piercing, spear, 0 ,0.13
    stat_pri_attr    light_spear
    stat_sec         0, 0, no, 0, 0, no, no, no, none, 0 ,0.1
    stat_sec_attr    no
    stat_pri_armour  13, 10, 4, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        5
    stat_ground      0, 0, -3, -2
    stat_mental      17, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 3396, 849, 60, 504, 3396
    ownership        greek_cities, egypt
    The highlighted entry determines the battle model used by the unit. I wan't you to change this so it reads like this:

    Code:
    ;326
    type             hellenistic infantry spartiateshoplitai
    dictionary       hellenistic_infantry_spartiateshoplitai      ; Spartiates Hoplitai
    category         infantry
    class            heavy
    voice_type       General_1
    soldier          greek_hoplite_spartan_pylos, 30, 0, 1.22
    officer          ebofficer_hellenic_officer
    officer          ebofficer_hellenic_standardbearer
    mount_effect     elephant -1
    attributes       sea_faring, hide_forest
    formation        0.76, 1.2, 1.6, 2.4, 4, square
    stat_health      1, 0
    stat_pri         16, 8, no, 0, 0, melee, simple, piercing, spear, 0 ,0.13
    stat_pri_attr    light_spear
    stat_sec         0, 0, no, 0, 0, no, no, no, none, 0 ,0.1
    stat_sec_attr    no
    stat_pri_armour  13, 10, 4, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        5
    stat_ground      0, 0, -3, -2
    stat_mental      17, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        1, 3396, 849, 60, 504, 3396
    ownership        greek_cities, egypt
    Do the same for the "soldier" entry of the Greek General's Bodyguard. Once you have done all this save the changes you made to your EDU and DMB.

    Now go into the UI folder in your SPQR installation. Find the unit card and unit_ifo card for the Spartan Hoplite. The first should be found in the subfolder Units and the second in the Unit_Info subfolder. There may be further subfolders for culture or factions specific units.

    Once you have found them copy those over to to their respective folders in EB. Now look for EB Spartan Hoplites and Greek General's Bodyguard unit card and unit_info card. Copy them to secure location. Same place you put the backup EDU and DMB.

    Now rename the new unit cards you brought over from the SPQR mod to match the full file name of the unit cards you just removed. You will have to make two copies as both the Spartans and the Bodyguards need their own unit cards and unit_info cards.

    Once everything is ready. Close the files you have been editing after saving the changes I specified. Now start up EB and either choose a Custom Battle or continue your Koinon Hellenon campaign. Both the Spartans and your General's Bodyguards should now be using both the models and textures of the SPQR Spartans.

    Let me know if you get it working. A screenie would be nice too.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  10. #10

    Default Re: Trading textures (models): SPQR to EB

    Hi again!

    So, it worked...in a kinda weird way..hehe

    I managed to do it only with the general unit. Maybe it was because I could not find the Unit and Unit_Info files for the standard unit?

    Also, I had to place the all files ending .cas in the standard data folder and sub-folders, not the one from EB (EB/Data/..) When files were only in the EB folder, the game crashed and displayed a message saying that the files couldn't be found.

    I´ll try to find a way to make the standard unit to work (altough, with my huge know-how on the subject, I doubt I´ll be able to heheh)

    Anyway, here is the screen :




    Oh, one last thing... when viewed from a far distance the unit looks like..weird, I don´t know how to explain... it is like if your television got a interference or something..hheeh..

    All over all, I just happy it worked (at least, part of it).
    If any of you got any idea with these "problems"... hehe

    Thanks!!

  11. #11
    Questor of AI revenue. Member The Errant's Avatar
    Join Date
    Feb 2007
    Location
    Limbo. Aka. the Empty Hold.
    Posts
    378

    Default Re: Trading textures (models): SPQR to EB

    Quote Originally Posted by andrefael
    Hi again!

    So, it worked...in a kinda weird way..hehe

    I managed to do it only with the general unit. Maybe it was because I could not find the Unit and Unit_Info files for the standard unit?

    Also, I had to place the all files ending .cas in the standard data folder and sub-folders, not the one from EB (EB/Data/..) When files were only in the EB folder, the game crashed and displayed a message saying that the files couldn't be found.

    I´ll try to find a way to make the standard unit to work (altough, with my huge know-how on the subject, I doubt I´ll be able to heheh)

    Anyway, here is the screen :




    Oh, one last thing... when viewed from a far distance the unit looks like..weird, I don´t know how to explain... it is like if your television got a interference or something..hheeh..

    All over all, I just happy it worked (at least, part of it).
    If any of you got any idea with these "problems"... hehe

    Thanks!!
    Good to know it worked. I wasn't sure myself. The Unit and Unit_Info files don't really matter. The only thing they do is show up of the unit info tab when you right click on a unit in the strat map. In battle they are the ones that show your unit at the bottom of the screen. If they don't exist the only difference will be that those unit cards will have the default peasant icon instead.

    Now there really isn't a good reason for it not to work. You obviously successfully ported over the model, textures and sprites correctly. Otherwise it would simply crash.

    I just noticed something though. This may be it or not. The standard Spartans have two factions owning it. Try using this version of the model entry instead and see if it still crashes:

    Code:
    type greek_hoplite_spartan_pylos
    skeleton fs_fast_o_f_spearman, fs_fast_swordsman
    indiv_range 40
    texture greek_cities, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    texture egypt, data/models_unit/textures/SPQR_INFANTRY_GREEK_HOPLITE_SPARTAN.TGA
    model_flexi_m data/models_unit/SPQR_atg_redspartan_high.cas, 8
    model_flexi_m data/models_unit/SPQR_atg_redspartan_med.cas, 15
    model_flexi_m data/models_unit/SPQR_atg_redspartan_low.cas, 30
    model_flexi data/models_unit/SPQR_atg_redspartan_lowest.cas, max
    model_sprite greek_cities, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.s pr
    model_sprite egypt, 60.0, data/sprites/greek_cities_greek_hoplite_spartan_pylos_sprite1.s pr
    model_tri 400, 0.5f, 0.5f, 0.5f
    Oh. About the distance thing. The last entry in model the model_tri determines the range at which the unit is displayed more accurately. Try changing the first number from 400 to 700 and take a look if it improves on anything.

    Apart from that I don't know what to tell you. The Scriptorium should have better and more detailed instructions on how to port over units from one mod to another. Check it out.

    Apart from that. Good Luck! And enjoy your fancy new Spartans.
    Last edited by The Errant; 09-06-2007 at 21:09.

    "If you listen, carefully. You can hear the Gods laughing."

    Last words of Emperor Commodus. From "The Fall of the Roman Empire".

  12. #12

    Default Re: Trading textures (models): SPQR to EB

    Now it´s working!
    The second entry you post worked just fine.
    I also have managed to put swords back to them =D,,hehe

    About the distance, I´ve changed it also. Now the disapear, instead of becoming
    strange....hehe but that's fine, I can live with that. hehe

    Thanks a lot.

    And by the way, can´t say you're wrong. These guys are the fanciest bad-asses in my game hehe.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO