Jump to content

How do I swap the textures and models of different units?


Cringe
 Share

Recommended Posts

Doing some digging around in the game files i found some DDS files for Kushite female support units, and was trying to swap all of the existing models/deviations in favor of having all spawn as the exact same model. I found a way to swap the textures (or so i think) by going into public>art>textures>skins>skeletal, and then swapping all textures available for the one i want and then renaming them appropriately. problem is, as soon as i start the game, all Kushite models without the white dress remain their original physical model, but are now pink. any idea as to where i can find the models for these units and also change them if that will fix the issue?

Link to comment
Share on other sites

1 hour ago, Cringe said:

and was trying to swap all of the existing models/deviations in favor of having all spawn as the exact same model.

If you just want them all to look the same, try using the actor files by reducing variants.

public/art/actors/units/kushites/female_citizen.xml

public/art/actors/props/units/heads/head_kush_fem_light.xml

1603770577_Screenshot2021-10-04at07_21_45.thumb.jpg.16e987c090b6b9cec7d50faa9357eabf.jpg

  • Like 2
Link to comment
Share on other sites

12 hours ago, Langbart said:

If you just want them all to look the same, try using the actor files by reducing variants.

public/art/actors/units/kushites/female_citizen.xml

public/art/actors/props/units/heads/head_kush_fem_light.xml

1603770577_Screenshot2021-10-04at07_21_45.thumb.jpg.16e987c090b6b9cec7d50faa9357eabf.jpg

Thanks for your response,

I updated the XML files, and I believe it worked, but I hit a problem after the jmod file didn’t work. I tried changing it to everything but the game wouldn’t let me past the mod selection screen. Any idea as to how I can fix this?

I tried having the modification in the public folder and as a seperate folder in the mods folder

Link to comment
Share on other sites

7 hours ago, Cringe said:

the jmod file didn’t work

By jmod do you mean the mod.json file?

You can just copy the file from another mod, for example the 0ad-space mod, and make small changes to it. 

It should look similar to this, be sure to use the correct brackets.

1734857639_Screenshot2021-10-05at03_51_47.thumb.jpg.f676036c3da540f08fd6cfa82a4c1a3a.jpg

2000059453_Screenshot2021-10-05at03_49_33.thumb.jpg.6342e7a0fd3aa7b341e33e65ecfd069c.jpg

Add the mod to your 0ad mods folder (see wiki/GameDataPaths). If you created the mod.json file correctly and placed the files in the right place, you should now be able to activate the mod in the mod selection and see your changes in the game.

Edit1

15 hours ago, Stan` said:

You can also use the limit variation option in the menu

@Cringe Since A25 there is an option called "Model appearance randomization" which makes each structure/unit look uniform.

1126467001_Screenshot2021-10-05at03_57_20.thumb.png.92a91b72209266f240c9661a55b2548d.png

Edited by Langbart
added Edit1 comment
  • Like 1
Link to comment
Share on other sites

21 hours ago, Langbart said:

By jmod do you mean the mod.json file?

You can just copy the file from another mod, for example the 0ad-space mod, and make small changes to it. 

It should look similar to this, be sure to use the correct brackets.

1734857639_Screenshot2021-10-05at03_51_47.thumb.jpg.f676036c3da540f08fd6cfa82a4c1a3a.jpg

2000059453_Screenshot2021-10-05at03_49_33.thumb.jpg.6342e7a0fd3aa7b341e33e65ecfd069c.jpg

Add the mod to your 0ad mods folder (see wiki/GameDataPaths). If you created the mod.json file correctly and placed the files in the right place, you should now be able to activate the mod in the mod selection and see your changes in the game.

Edit1

@Cringe Since A25 there is an option called "Model appearance randomization" which makes each structure/unit look uniform.

1126467001_Screenshot2021-10-05at03_57_20.thumb.png.92a91b72209266f240c9661a55b2548d.png

Thanks, the mod.json file worked, but ive hit another problem. Even with the mod enabled there is absolutely no change to the variation, despite me going back and changing the actor files several times. Do you know what specifically within the actor files i should change to make this work? Below ive made a quick list of how i made the mod

1. opened the mods folder and made an exact copy of "public"
2. modified public so that there is nothing but the art folder, within that is units > kushite and finally a lone XML file for the female unit

3. Opened the XML file and changed the variation value (ive attached a poorly drawn photo showing the lines that i toyed with)
4. after changing the variation lines i closed the XML, made sure that windows didnt turn it into a TXT for no random reason, backed out and then compressed the whole mod back into a zip, as well as slapping a copy of the public mod's json file that i appropriately renamed.

 

Once again, I'd like to thank you for your time, i'm an idiot when it comes to code i know lol

unknown.png

Link to comment
Share on other sites

  1. Create a folder and recreate the folder structure, first the "art" folder, next "actors", next "units", next "kushites" and in the last folder you place the female_citizen.xml file. Download it from here: trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/art/actors/units/kushites/female_citizen.xml2000059453_Screenshot2021-10-05at03_49_33.thumb.jpg.6342e7a0fd3aa7b341e33e65ecfd069c.jpg.dd5360e13c46180c3c0a52e68fa8edf8.jpg
  2. Add your mod.json file to it
  3. Enable the mod with the 0AD app
  4. Open the "Scenario Editor" and select the 4th icon called "Object", select "units/kush/support_female_citizen" and place some units on the field.1286761113_Screenshot2021-10-06at03_30_35.thumb.jpg.e38d97639b665ce34de94ef0cfae68a4.jpg
  5. Open the female_citizen.xml file from your mod and start making changes by deleting variants. The results should be visible immediately.
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...