I'm using a Mac.
I'm trying to convert an existing DDS file (GERMAN_PARA_MG34) to give myself a custom unit (WAFFEN_SS_LMG).
I created a test campaign folder called AAATEST
I copied the SQUADS.CSV file and pasted it to AAATEST campaign folder
I edited the squads.CSV to create a new unit and stats for "WAFFEN_SS_LMG"
I gave it Name = Waffen SS LMG; ID = 1000; IconID = WAFFEN_SS_LMG; AssetFilename = WAFFEN_SS_LMG (I made it a three-man unit so it's easy to tell in BA2 editor that it's the new unit)
I copied the german para mg34 DDS file and renamed it "WAFFEN_SS_LMG"
I created a AAATEST/DATA/BATTLE/UNITTEXTURES folder and placed the WAFFEN_SS_LMG.dds file in it
I created a AAATEST/DATA/BATTLE/UNITS folder
I copied the german_para_mg34_0.S4F file, renamed it WAFFEN_SS_LMG_0.S4F and placed it in the UNITS folder
I copied the german_para_mg34.txt file, renamed it WAFFEN_SS_LMG.TXT and placed it in the UNITS folder
I created a text file in my campaign folder (AAATEST/TEXT9.txt) to add a unit name: IDS_UNITNAME1000,"Waffen SS LMG",
I opened BA2 editor, selected the AAATEST campaign, and opened a new scenario file
The unit appears in the pick list in editor as WAFFEN SS LMG, and when I select it and place it on the map it comes up just fine looking exactly like a german para MG34, except with 3 men.
So far so good...
I opened the WAFFEN_SS_LMG.DDS file using Graphics Converter 9, changed the color of the pants from blue to khaki, and saved the file.
I closed Graphics Converter, then reopened the WAFFEN_SS_LMG.DDS file from my campaign folder, just to make sure the changes were actually saved. They were.
I opened BA2, went to editor, opened the campaign, selected WAFFEN_SS_LMG from the unit pick list and placed it on the map, but it still comes up with paras in blue pants.
What am I doing wrong?
Editing a DDS file?
Modders can post their questions on scripting and more.
Moderators: Slitherine Core, BA Moderators
-
- Site Admin
- Posts: 9863
- Joined: Wed Mar 23, 2005 10:35 pm
Re: Editing a DDS file?
Post by pipfromslitherine »
The texture names are built into the graphics file (the .s4f). The simplest solution is to edit your version of the s4f with a binary editor to change the (easily findable) texture name - you would just need to make sure your texture name was the same length as the existing one.
Cheers
Pip
Cheers
Pip
follow me on Twitter here
Re: Editing a DDS file?
UPDATE: Never mind. I'm an idiot. Re-read Pip's post. I forgot that the new DDS file has to have the same number of characters in it as the original. (Duh!) Everything's fine now.
Running into a problem here.
I want to take an existing building object, rename the S4F file, rename and edit the DDS files, edit the S4F file so that it points to the newly renamed DDS files. However, trying to load map into the game's editor, it crashes with the "can't find a texture" error. I've checked the obvious stuff of the spelling and case, but no success. What needs to be changed? Basically, I've created a new object subfolder in my campaign, edited the objects.txt file with the name I want to use for my object, took an existing building and renamed the S4f file and all the DDS files to match each other and the objects.txt file, and edited the S4F to point at the renamed DDS file. Crash.
Running into a problem here.
I want to take an existing building object, rename the S4F file, rename and edit the DDS files, edit the S4F file so that it points to the newly renamed DDS files. However, trying to load map into the game's editor, it crashes with the "can't find a texture" error. I've checked the obvious stuff of the spelling and case, but no success. What needs to be changed? Basically, I've created a new object subfolder in my campaign, edited the objects.txt file with the name I want to use for my object, took an existing building and renamed the S4f file and all the DDS files to match each other and the objects.txt file, and edited the S4F to point at the renamed DDS file. Crash.
Return to “Battle Academy 2: Modders Corner”
Jump to
- Announcements & General Discussion
- ↳ News & Announcements
- ↳ General Discussion
- ↳ Game Ideas
- ↳ Archive
- ↳ Slitherine/Matrix Press Event 2012 - The Home of Wargamers
- ↳ Blogs
- ↳ Deadliest Warrior on Spike TV
- ↳ Military Art
- ↳ Shenandoah General Discussion Forum
- ↳ Shenandoah Studio Website
- ↳ Gettysburg: The Tide Turns
- ↳ Gettysburg: The Tide Turns - Technical Support
- ↳ Gettysburg: The Tide Turns - After Action Reports (AAR)
- ↳ Battle of the Bulge
- ↳ Battle of the Bulge: Tech Support
- ↳ Drive On Moscow
- ↳ Drive on Moscow iPad
- ↳ Desert Fox: The Battle of El Alamein
- Regional
- ↳ Español
- Coming Soon
- ↳ Stormbinders
- ↳ Platoon Commander
- ↳ Space Station Designer
- ↳ Space Station Designer - Discord Server
- ↳ Ancient Arenas: Chariots
- ↳ RuneQuest: Warlords
- Latest Releases
- ↳ Broken Arrow
- ↳ Panzer Corps 2
- ↳ Join the Discord server
- ↳ Panzer Corps 2: Tech Support
- ↳ Panzer Corps 2 Scenario Design
- ↳ Panzer Corps 2: Multiplayer & Tournaments
- ↳ Panzer Corps 2 AARs
- ↳ ICBM: Escalation
- ↳ ICBM: Escalation Tech Support
- ↳ ICBM: Escalation - Discord Server
- ↳ Terminator: Dark Fate – Defiance
- ↳ Terminator: Dark Fate Defiance Tech Support
- ↳ Headquarters World War II
- ↳ Scramble: Battle of Britain
- ↳ Field of Glory: Kingdoms
- ↳ Field of Glory: Kingdoms - Modding and Scenarios
- ↳ Field of Glory: Kingdoms - After Action Reports
- ↳ Stargate: Timekeepers
- ↳ Stargate: Timekeepers - Tech Support
- ↳ Starship Troopers - Terran Command
- ↳ Master of Magic
- ↳ Field of Glory II
- ↳ Field of Glory II: Tech Support
- ↳ Field of Glory II: Scenario Design
- ↳ Field of Glory II: Modding
- ↳ Field of Glory II: After Action Reports
- ↳ Field of Glory II: Tournaments & Leagues
- ↳ Field of Glory II Digital League
- ↳ Knock-out Tournament
- ↳ Field of Glory II: The Divisional Championships
- ↳ FOG II World Team Championship
- ↳ Archive
- ↳ Field of Glory II: Frequently Asked Questions
- ↳ The FOGII Beta Archives
- ↳ Field of Glory II 1.5.15 Public Beta
- ↳ Field of Glory II 1.5.20 Public Beta
- ↳ Field of Glory II 1.5.22 Public Beta
- ↳ Field of Glory II - 1.5.24 Open Beta
- ↳ Field of Glory II - 1.5.26 Open Beta
- ↳ Field of Glory II - 1.5.27 Open Beta
- ↳ Field of Glory II - 1.5.29 Open Beta
- ↳ Field of Glory II - 1.5.31 Open Beta
- ↳ Field of Glory II - Open Beta 1.5.33
- ↳ Field of Glory II - Open Beta 1.5.37
- ↳ Field of Glory II Open Beta v.1.5.39
- ↳ Warhammer 40,000: Battlesector
- ↳ Planetary Supremacy
- ↳ Warhammer 40,000: Gladius - Relics of War
- ↳ Warhammer 40,000: Gladius - Relics of War: Tech Support
- ↳ Warhammer 40,000: Gladius - Relics of War: Modding
- ↳ Warhammer 40,000: Gladius - Relics of War: Suggestions
- ↳ Master of Magic Classic
- ↳ Master of Magic: Tech Support
- ↳ Caster of Magic
- ↳ Field of Glory II: Medieval
- ↳ Field of Glory II: Medieval Tech Support
- ↳ Field of Glory II: Medieval - Scenario Design
- ↳ Field of Glory II: Medieval - Modding
- ↳ Field of Glory II: Medieval - After Action Reports
- ↳ Field of Glory II: Medieval - Tournaments & Leagues
- ↳ Field of Glory II: Medieval - Frequently Asked Questions
- ↳ Field of Glory II: Medieval Beta Archives
- ↳ Field of Glory II: Medieval - Open Beta v.1.5.7
- ↳ Field of Glory II: Medieval - Open Beta
- ↳ Order of Battle Series
- ↳ Order of Battle : World War II - Tech Support
- ↳ Order of Battle Bug Submissions
- ↳ Order of Battle : World War II - AAR
- ↳ Order of Battle : World War II - Scenario Design
- ↳ Order of Battle : World War II - Multiplayer
- ↳ Multiplayer Beta
- ↳ Fantasy General II - Invasion
- ↳ Fantasy General II - Invasion: Tech Support
- ↳ Content Editor
- ↳ Fantasy General II - Beta Archive
- ↳ ICBM
- ↳ ICBM:Tech Support
- ↳ ICBM:Features you would like to see
- ↳ Stirring Abyss
- ↳ Battlestar Galactica Deadlock
- ↳ Battlestar Galactica Deadlock: Tech Support
- ↳ Shadow Empire
- ↳ Field of Glory: Empires
- ↳ Dev Diaries
- ↳ Field of Glory: Empires - Tech Support
- ↳ MOD
- ↳ AAR
- ↳ Field of Glory: Empires Beta Archive
- ↳ FOG Empires Open Beta v.1.3.5
- ↳ Diplomacy Open Beta
- ↳ Command: Modern Operations
- ↳ Astra Exodus
- ↳ Tech Support
- ↳ Afghanistan '11
- ↳ Afghanistan '11: Tech Support
- ↳ Strategic Command WWI
- ↳ Armored Brigade
- ↳ WarPlan
- ↳ Close Combat: The Bloody First
- ↳ Empires Apart
- ↳ Empires Apart PBEM
- ↳ Strategic Command WWII: World at War
- ↳ Aggressors: Ancient Rome
- ↳ Aggressors: Tech Support
- ↳ Aggressors Modding
- ↳ Aggressors AARs
- ↳ Warhammer 40,000: Sanctus Reach
- ↳ Sanctus Reach After Action Reports (AAR)
- ↳ Sanctus Reach Mods and Scenario Design
- ↳ Sanctus Reach Opponents Wanted
- ↳ Sanctus Reach Tech Support
- ↳ March to Glory
- ↳ Tech Support: March to Glory
- ↳ The Operational Art of War IV
- ↳ Check Your 6!
- ↳ Check Your 6!: Tech Support
- ↳ Polaris Sector
- ↳ Tech Support
- ↳ Modders Corner
- ↳ Mare Nostrvm
- ↳ Gettysburg: The Tide Turns
- ↳ Warhammer® 40,000® Armageddon™
- ↳ Warhammer AAR
- ↳ Tech Support
- ↳ Mods and Scenario Design
- ↳ Warhammer Open Beta
- ↳ Carrier Deck
- ↳ Carrier Deck: Tech Support
- ↳ Panzer Corps
- ↳ Panzer Corps Open Beta
- ↳ Panzer Corps Mac Open Beta
- ↳ Panzer Corps : Tech Support
- ↳ Panzer Corps : AAR's
- ↳ Panzer Corps : Scenario Design
- ↳ Panzer Corps 2
- ↳ Close Combat Series
- ↳ Close Combat : Tech Support
- ↳ Close Combat - Gateway to Caen
- ↳ Close Combat - Gateway to Caen : Tech Support
- ↳ Close Combat - Gateway to Caen - Match Making Forum
- ↳ Close Combat - Panthers in the Fog
- ↳ Close Combat - Match Making Forum
- ↳ Close Combat - Panthers in the Fog: Tech Support
- Classic Games A-Z
- ↳ Airstrike Eagles of WWII
- ↳ Airstrike : Tech Support
- ↳ Alea Jacta Est Series
- ↳ Alea Jacta Est Series : Tech Support
- ↳ Battle Academy
- ↳ Battle Academy : Open Beta
- ↳ Battle Academy : Tech Support
- ↳ Battle Academy : Modders Corner
- ↳ Battle of the Scheldt Beta
- ↳ Battle Academy : Scenario Design
- ↳ Battle Academy : Tournaments & Leagues
- ↳ Battle Academy 2 – Eastern Front
- ↳ Tech Support
- ↳ Battle Academy 2: Modders Corner
- ↳ Battle Academy 2: Scenario Design
- ↳ Battle Academy 2: Tournaments & Leagues
- ↳ Battle Academy 2: AAR
- ↳ Battle of the Bulge
- ↳ Buzz Aldrin's Space Program Manager
- ↳ Buzz Aldrin's Space Program Manager : Tech Support
- ↳ Buzz Aldrin's Space Program Manager : Early Access Beta Forum
- ↳ Campaign Series: Middle East 1948 - 1985
- ↳ Chariots of War
- ↳ Civil War II
- ↳ Civil War II : Tech Support
- ↳ Civil War II : AAR's
- ↳ Command - Modern Air/Naval Operations
- ↳ Commander - Napoleon at War
- ↳ Commander - Napoleon at War : Tech Support
- ↳ Commander - The Great War
- ↳ Commander - The Great War: Tech Support
- ↳ Commander The Great War AAR's
- ↳ Commander the Great War : Mods & Scenario Design
- ↳ Commander the Great War : Opponent Finder
- ↳ Conflict of Heroes
- ↳ Conflict of Heroes : Tech Support
- ↳ Conflict of Heroes : AAR's
- ↳ Match making forum
- ↳ Conquest!
- ↳ Conquest! : Tech Support
- ↳ Decisive Campaigns Series
- ↳ Distant Worlds Series
- ↳ Drive on Moscow
- ↳ Drums of War
- ↳ Drums of War : Tech Support
- ↳ Egypt - Engineering an Empire
- ↳ Egypt - Engineering an Empire : Tech Support
- ↳ España: 1936
- ↳ Fantasy Kommander – Eukarion Wars
- ↳ Fantasy Kommander – Eukarion Wars : Tech Support
- ↳ Field of Glory Digital
- ↳ Field of Glory : Tech Support
- ↳ Field of Glory : Scenario Design
- ↳ Field of Glory : Leagues & Tournaments & Seeking Opponents
- ↳ The FOG Digital League
- ↳ The Slitherine Trophy
- ↳ Field of Glory: League of Extraordinary Gentleman
- ↳ Field of Glory : AAR's
- ↳ FoG PC Beta
- ↳ Old Beta Test
- ↳ Bug Reports
- ↳ Field of Glory Campaigns
- ↳ Flashpoint campaigns: Red Storm
- ↳ Frontline Series
- ↳ Frontline Road to Moscow
- ↳ Frontline: Road to Moscow Tech Support
- ↳ Frontline: Road to Moscow Beta
- ↳ PC Beta
- ↳ Android Beta
- ↳ iOS Beta
- ↳ Frontline: The Longest Day
- ↳ Tech Support
- ↳ Gary Grigsby's War in the East
- ↳ Gary Grigsby's War in the East : Tech Support
- ↳ Gary Grigsby’s War in the West
- ↳ Germany at War: Barbarossa 1941
- ↳ Germany at War: Barbarossa 1941 : Tech Support
- ↳ Germany at War: Barbarossa 1941 : AAR's
- ↳ Hannibal: Rome and Carthage
- ↳ Hannibal: Rome and Carthage - Tech Support
- ↳ Hell
- ↳ Tech Support
- ↳ Heroes of Normandie
- ↳ Tech Support
- ↳ Mods and Scenario Design
- ↳ HISTORY™ Great Battles Medieval
- ↳ HISTORY™ Great Battles Medieval : Tech Support
- ↳ HISTORY™ Great Battles Medieval : Modding
- ↳ HISTORY®: Legends of War
- ↳ Tech Support
- ↳ Last Days of Old Earth
- ↳ Tech Support
- ↳ Legion & Legion Gold
- ↳ Legion and Legion Gold: Tech Support
- ↳ Legion Arena & CoM
- ↳ Legions of Steel
- ↳ Tech Support
- ↳ Lock 'n Load: Heroes of Stalingrad
- ↳ Lock 'n Load: Heroes of Stalingrad - Tech Support
- ↳ Magnifico - Da Vinci’s Art of War
- ↳ Tech Support
- ↳ MILITARY HISTORY™ Commander - Europe at War : General Discussion
- ↳ Commander - Europe at War : Tech Support
- ↳ Commander - Europe at War : Modders Corner
- ↳ Commander Europe at War : AAR's
- ↳ Commander Europe at War : Opponent Finder
- ↳ Commander Europe at War : GS Open Beta
- ↳ Napoleon's Campaigns
- ↳ Pandora - First Contact
- ↳ Pandora : Public Beta
- ↳ Pandora : Tech Support
- ↳ Pandora : Modders Corner
- ↳ Pike & Shot
- ↳ Tech Support
- ↳ Scenario Design
- ↳ After Action Reports
- ↳ Modders Corner
- ↳ Opponents Wanted
- ↳ Pike & Shot : Tournaments & Leagues
- ↳ Piercing Fortress Europa
- ↳ Pride of Nations
- ↳ QVADRIGA
- ↳ QVADRIGA : Tech Support
- ↳ Ravenmark: Scourge of Estellion
- ↳ Tech Support
- ↳ Revolution Under Siege Gold
- ↳ Rise of Prussia Gold
- ↳ Sengoku Jidai: Shadow of the Shogun
- ↳ Tech Support
- ↳ Scenario Design
- ↳ Modders Corner
- ↳ After Action Reports
- ↳ Opponents Wanted
- ↳ Sengoku Jidai: Tournaments & Leagues
- ↳ Scourge of War Gettysburg
- ↳ Scourge of War Series : Tech Support
- ↳ Scourge of War: Waterloo
- ↳ Sovereignty
- ↳ Sovereignty: Tech Support
- ↳ Sovereignty: AAR
- ↳ Sovereignty: Modders Corner
- ↳ Spartan & Gates of Troy
- ↳ Star Hammer
- ↳ Star Hammer: Tech Support
- ↳ Star Hammer: Scenario Design
- ↳ Strategic Command: WWII War in Europe
- ↳ Strategic War in Europe
- ↳ Tech Support
- ↳ Team Assault
- ↳ Match making forum
- ↳ Team Assault : Tech Support
- ↳ THE HISTORY CHANNEL™ Great Battles of Rome
- ↳ THE HISTORY CHANNEL Great Battles of Rome : Tech Support
- ↳ Thirty Years' War
- ↳ Tigers on the Hunt
- ↳ Time of Fury
- ↳ Time of Fury AAR's
- ↳ Time of Fury : Tech Support
- ↳ Time of Fury : Scenario Design & Modding
- ↳ Time of Fury : Open Beta
- ↳ To End All Wars
- ↳ Tech Support
- ↳ Unity of Command
- ↳ Victory and Glory
- ↳ Vietnam '65
- ↳ Vietnam '65 - Tech Support
- ↳ Wars of Napoleon
- ↳ Battleplan Closed Beta
- Online Ordering & Support
- ↳ Online Ordering & Support
- ↳ Site Feedback
- ↳ Invitation system support
- Tabletop Wargaming
- ↳ Field of Glory : Ancient & Medieval Era 3000 BC-1500 AD : General Discussion
- ↳ Rules Questions
- ↳ Scenarios, AAR's, Lists, Modelling and more
- ↳ Historical Scenarios
- ↳ Field of Glory AAR's
- ↳ Army Design
- ↳ Modelling
- ↳ Player Designed Lists
- ↳ Tournaments & Opponents
- ↳ Tournaments
- ↳ Opponent Finder
- ↳ Foreign Language Forums
- ↳ French Speaking Forum
- ↳ Spanish Speaking Forum
- ↳ Italian Speaking Forum
- ↳ German Speaking Forum
- ↳ Tech Support
- ↳ Field of Glory 3.0 Beta
- ↳ Marketplace
- ↳ Field of Glory : Napoleonic Era 1792-1815 : General Discussion
- ↳ Rules Questions
- ↳ Campaigns
- ↳ Scenarios, AAR's, Lists, Modelling and more
- ↳ Historical Scenarios, Maps, and Orders of Battle (OOB)
- ↳ FoGN After Action Reports (AAR)
- ↳ Army Design
- ↳ Player Designed Lists and Adaptions
- ↳ Modelling/Gallery/Uniforms Questions
- ↳ Tournaments, Demos & Opponents
- ↳ FoGN Community: Opponent Finder, Clubs, Blogs, etc.
- ↳ Foreign Language Forums
- ↳ French Speaking Forum
- ↳ Spanish Speaking Forum
- ↳ Italian Speaking Forum
- ↳ German Speaking Forum
- ↳ Marketplace
- ↳ Field of Glory : Renaissance Wars : General Discussion
- ↳ Historical Scenarios
- ↳ Rules Questions
- ↳ After Action Reports (AAR's)
- ↳ Tournaments
- ↳ Army Design
- ↳ Player Designed Lists
- ↳ Modelling
- ↳ Campaigns
- ↳ Opponent Finder
- ↳ FOGR Update
- ↳ Marketplace
- ↳ Field of Glory : Swords & Sorcery : General Discussion
- ↳ Marketplace
- ↳ Flashpoint campaigns: Red Storm : Tech Support
- ↳ HISTORY™ Ice Road Truckers
- ↳ HISTORY™ Great Empires: Rome
- ↳ HORRIBLE HISTORIES™ Ruthless Romans
- ↳ The Tudors
- ↳ Command - Modern Air/Naval Operations : AAR's
- ↳ Command - Modern Air/Naval Operations : Tech Support
- ↳ Tech Support
- ↳ España: 1936 : Tech Support
- ↳ Piercing Fortress Europa: Tech Support
- ↳ Tech Support
- ↳ FoGR Lists
- Archive
- ↳ Gary Grisby’s World at War iPad