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.
[10:13 pm]
Oh_Man -- No APM in chess. Computer just outthinks the human by seeing more moves ahead and more permutations
[10:12 pm]
Oh_Man -- U reckon? Kasparov waa defeated by computer decades ago
[05:47 pm]
NimoStar -- If its any consolation, the human brain would still mop the floor with this bot if it wasn't limited by the mechanical interface
[05:34 pm]
NimoStar -- Well. The bot didn't come up with any new strategy. It just has superhuman micro. Hard to beat that. I reckon even the simplest dedicated chess engines are unbeatable for humans now.
[02:13 pm]
Oh_Man -- all g
[10:54 am]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider did u watch the entire video? it's not one game. it's currently dominating the ladder at number 1 position. do ur research first!
Oops, caught me there, no I haven't. :( I was imagining how the game went. Sorry for that. Watching it now. brb
[10:52 am]
NudeRaider -- NimoStar
NimoStar shouted: They were not "Unprepared" that was their fifth loss in a row against the bot. The other replays are also available
that doesn't mean he was prepared. When humans come around with new strategies it often takes weeks until the pros figure out how to shut it down. Oh_Man that's certainly a way more convincing argument for micro being "too good to beat".
[09:43 am]
DiearAnother -- wirefram
[08:35 am]
NimoStar -- Well, pros showed that long ago... half of zerg pros just ling muta rush
[08:35 am]
NimoStar -- " its shown is that you can trade 1000's of apm to make up for lack of strategy"
Please log in to shout.


Members Online: RIVE