Staredit Network > Forums > Modding Discussion > Topic: New bunkers
New bunkers
Apr 3 2013, 7:30 am
By: Raygoza  

Apr 3 2013, 7:30 am Raygoza Post #1



I need to know if it's possible to make other buildings or units to bunkers, someone said that it's hard coded, although you can make buildings able to load units.
But still such buildings or units that are able to load other units except for bunkers when they get destroyed everything inside follows.

The bunker is special because it loads units, allows them to attack from within and don't get destroyed when the bunker gets destroyed.
Can these functions be recreated or reused?



None.

Apr 4 2013, 4:40 am jjf28 Post #2

Cartography Artisan

This is prolly crude as far as modding solutions go, but if your mod is just for UMS you can butcher an existing, unused unitID, and use EUD actions to form a new bunker

For example, change 0x59CD0C to 125 to change a unit at index 0 into a bunker



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Apr 4 2013, 7:22 am Raygoza Post #3



Unfortunately I'm looking for a modding solution to this problem, your suggestion will be useful, at least in mission maps where an other bunker would be used.
But could there be a modding solution to this, involving plugins maybe to replicate the behavior of the Bunker?



None.

Apr 4 2013, 1:09 pm Biophysicist Post #4



Afaik, Bunkers are extremely hardcoded. There may be a way though? What's different about the new Bunker you want compared to the old one? Depending on what you have in mind, you could possibly unit ID swap the new Bunker to the actual Bunker's unit ID via plugin and make the other changes happen in a manner depending on what they are.



None.

Apr 4 2013, 4:20 pm pastelmind Post #5



Technically it's possible. Just find every reference to the Bunker's unit ID in the assembly code, and add a check for the second quasi-bunker. I assume there would be at least four places where the game checks the unit ID:

(1) Creating the unit
(2) Enter/exit transport
(3) Auto-attack
(4) Unit death (don't remove units previously loaded in bunkers)

The real problem is: how are you going to analyze the massive assembly code, let alone hack it?

You would also need to modify units.dat [transport capacity] and the button set for the quasi-bunker.



None.

Apr 17 2013, 8:23 pm Raygoza Post #6



This conversation seems to have the guide lines, Thanks Pastelmind.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Vrael, Roy, NudeRaider