Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Marines trained at 5 health?
Marines trained at 5 health?
Apr 3 2009, 9:39 pm
By: PIESOFTHENORTH  

Apr 3 2009, 9:39 pm PIESOFTHENORTH Post #1



I made this map where I set the Marine build time to 8739 to make it instant training, but when the marine pops out of the barracks, he has only 5/40 hit points. Like it shows he's badly hurt and everything, and he can be healed by a medic, but why is it doing this?



None.

Apr 3 2009, 9:41 pm Devourer Post #2

Hello

I cannot give you a 100% sure answer, but I'm pretty sure that it's the same like "hitpoints"
if you set the hitpoints standart as "8943289432789537" or such, the unit will have a screwed/damaged wireframe and got "-432749/-123439" hit points.
maybe it's the same with time.



Please report errors in the Staredit.Network forum.

Apr 3 2009, 9:42 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Hang on, I know the answer. Let me dig it up.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 3 2009, 9:45 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Isn't this because of the build time of the marine?
Or build time of the barracks?
Something like that...




Apr 3 2009, 9:45 pm PIESOFTHENORTH Post #5



hmm i also gave the Barracks that same build time, and when i built it it had 10% of its hit points and repairing it wouldn't do anything. the health just kept going down, and then i trained a marine from that damaged barracks and the game crashed!

when the barracks was normal build time but just the marine was "instant" it wouldn't crash it would just have 5/40 health



None.

Apr 3 2009, 10:18 pm Falkoner Post #6



It'll crash if you set the build time to 0, to get rid of the low health spawning units, just up the build time a bit more.



None.

Apr 3 2009, 11:33 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

R = int(0.9*H/B)
where R = repair rate in 1/256 of hp per frame, H = 1/256 of hp, B = build rate in SCMDraft.

If R > 65535, it overflows.

In the case of the building, I don't know what happens when B is 0. Some units make it crash. In your case, the 8739 translates into 0 in the map, causing the function to divide by zero. I'm not entirely sure how to explain the 5/40. Can you post the map so I can take a look at it?

Post has been edited 1 time(s), last time on Apr 4 2009, 12:13 am by Zachary Taylor.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 4 2009, 2:03 am PIESOFTHENORTH Post #8



Ok here, this currently has both the Barracks and the Marine as "instabuild", but you can easily change the barracks build time to its normal value i guess to see the 5/40 marine because with Barracks having instabuild it seems to crash when you train a marine.



None.

Apr 4 2009, 2:57 am rockz Post #9

ᴄʜᴇᴇsᴇ ɪᴛ!

No, I can't. Marine crashes no matter what. Post the one which has the 5/40 marine.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 4 2009, 5:39 pm fritfrat Post #10



That issue has happened ever since the beginning of starcraft, with people setting 9999 hp buildings to 1 second build time and they come out burning. Just increase the build time a little and it'll be fine; finding out why or how it happens is less important than just knowing the fact you just need higher build times for units with more health.



None.

Apr 4 2009, 6:06 pm lil-Inferno Post #11

Just here for the pie

Set the build time to 1 in SCMDraft, it's close enough to instant and it's only 1/10 of a second, which isn't long at all.

:hurr:

EDIT: That won't work either, my bad. I think 15 is a good build time, however.




Apr 4 2009, 6:40 pm Falkoner Post #12



Quote from Falkoner
It'll crash if you set the build time to 0, to get rid of the low health spawning units, just up the build time a bit more.

Did this just get ignored?

A build time of 15 will always do the trick, as that's the 1 in normal staredit, but you should be able to get away with lower numbers, you just have to test it until you get the right one.



None.

Apr 4 2009, 7:02 pm rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from Falkoner
Quote from Falkoner
It'll crash if you set the build time to 0, to get rid of the low health spawning units, just up the build time a bit more.

Did this just get ignored?

A build time of 15 will always do the trick, as that's the 1 in normal staredit, but you should be able to get away with lower numbers, you just have to test it until you get the right one.
Build time of 15 won't do the trick if the unit has > 4266 life.

OP claimed he had a 0 build time marine working, I want to know how, and especially how he got 5 hp on a 40 max marine.

The max health is essentially 284.̅4̅ · Build time.

Quote from fritfrat
That issue has happened ever since the beginning of starcraft, with people setting 9999 hp buildings to 1 second build time and they come out burning. Just increase the build time a little and it'll be fine; finding out why or how it happens is less important than just knowing the fact you just need higher build times for units with more health.
Says who?



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 4 2009, 7:15 pm Falkoner Post #14



Quote
OP claimed he had a 0 build time marine working, I want to know how, and especially how he got 5 hp on a 40 max marine.

0 Build time works on macs, that easily could be it.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: NudeRaider, Ultraviolet, Roy