Staredit Network > Forums > Modding Assistance > Topic: On my way to be a successful modder....
On my way to be a successful modder....
Oct 21 2008, 12:15 am
By: Angle Lock  

Oct 21 2008, 12:15 am Angle Lock Post #1



1. How do you change the hotkey of a button?

2. How do you change the distance between the unit and its shadow?



None.

Oct 21 2008, 12:45 am Corbo Post #2

ALL PRAISE YOUR SUPREME LORD CORBO

1. You change them with TBLPad. The string format is like "m<1>Build <3>M<1>arine<0>" (It not really like that it was just an example)
the lowercase m at the very beggining indicated the key that will be the hotkey.

2. It depends on which unit but all of the shadows (or most of them) are controlled via iscript. They are just underlays of certain grps displayed under the unit. (the grps that are blue colored shapes of units).
In most of the cases the shadows are called by the op code "imgul" followed by the GRP number and the coordinates. (that is if I'm not mistaken in the coordinate-grp order)

All that you'll need to do is change strings with TBLPad for the first one and hunt the shadow for the second one and change the coordinates to whatever you wish.



fuck you all

Oct 22 2008, 11:54 am Devourer Post #3

Hello

Quote from Corbo
1. You change them with TBLPad. The string format is like "m<1>Build <3>M<1>arine<0>" (It not really like that it was just an example)
the lowercase m at the very beggining indicated the key that will be the hotkey.

i explain it a bit more:

first of all the hotkey [here: m]
then the code <1> to show those letters behind in the light-blue color
<3> just colors the hotkey-letter to yellow, here the M after the M you have to re-code the <1>
the <0> has to be the last displayed letter, otherwise it'll crash the game as soon as you move your mouse above the unit-icon [here above the marine icon]

hints:
You should notice which hotkey-letters are already in use for that building/unit
for example: if you have made the hotkey for a bat to m, and didn't changed the one for Marine, just a marine will be trained if you press M.... but if you have removed the marine-icon and then press M the abt will be build

to change strings in a mod you first have to extract the stat_txt.tbl from your stardat.mpq [or google it^^]
change the strings inside via using tblpad [from shadowflare, nice prog btw^^] then use winMPQ, open your mod-exe, then add the stat_txt.tbl with "rez\" infront [ rez\ is also the path inside of stardat.mpq, so filter all rez\ datas to find it easier ]

there are local ID's ... each ID stands for an other language, sorry, don't know what ID is what language


-edit-

to your second question I can't give you some adive, but just so you know:
shadows of units are automatly created, so you have NOT to edit the shadows of them [you can't anyway; there aren't shadow.grp's for units :P]
building's shadows has to drawn by yourself.... these are saved under paths like this:
unit\terran\brshdw.grp [i'm not sure if that is a correct one :P]
these shadows are shown blue in draw-programms like "The Gimp2"; use exactly that color to draw the shadow....

I'm just wondering why blizzard hasn't used the same shadow-creator like in units?? It's very annoying to create them because you have to be good in remembering building-forms, or just copy the building, paste it in the shadow box, then create the shadows in there, and remove the building again :P


GL HF with creating mods and becoming a successfull modder :)

Post has been edited 1 time(s), last time on Oct 22 2008, 12:07 pm by DeVouReR.



Please report errors in the Staredit.Network forum.

Oct 22 2008, 6:20 pm poiuy_qwert Post #4

PyMS and ProTRG developer

Actually for the string part you are only half correct DeVouReR. The first "<1>" in your example does not say that the text following it is light blue, read this.




Oct 22 2008, 6:27 pm Devourer Post #5

Hello

Quote from poiuy_qwert
Actually for the string part you are only half correct DeVouReR. The first "<1>" in your example does not say that the text following it is light blue, read this.
i know that the first <1> enable the "displaying" option.... the <0> closes it.... he don't need the professional details, because he is a beginner, k?



Please report errors in the Staredit.Network forum.

Oct 22 2008, 8:05 pm poiuy_qwert Post #6

PyMS and ProTRG developer

Professional? You think that is so much harder to understand that he shouldn't know it? You are just setting him up for more problems and questions because you gave false and/or incomplete information.




Oct 22 2008, 9:15 pm Fyrinite Post #7



TBL's aren't hard to understand how they work...don't hold back details.

it's not hard, for displayed strings on buttons, it's always:

hotkey<display tag>String<0>

All the additional tags inside are just colorization tags, very much the same as those in map strings. Normally it really is just to Identify the hotkey used...although mods sometimes have it like this:

(using marine as an example)
m<1>Build Marine (M)<0>
(or it could be)
m<1>Build Marine (<3>M<1>)<0>

it's all about knowing what hex-tags do what where...

Some units do have shadow grp's...it's air units that you can cheat on. Ground units need their own shadows.



None.

Oct 23 2008, 12:56 am Corbo Post #8

ALL PRAISE YOUR SUPREME LORD CORBO

Quote from Devourer
I know that the first <1> enable the "displaying" option.... the <0> closes it.... he don't need the professional details, because he is a beginner, k?
...

Let's put it this way, when you ask for help, do you expect a well-made, correct and proffesional answer from us or would you like us to answer your questions with wrong information only because you're a begginer?

Quote
All the additional tags inside are just colorization tags, very much the same as those in map strings. Normally it really is just to Identify the hotkey used...although mods sometimes have it like this:

(using marine as an example)
m<1>Build Marine (M)<0>
(or it could be)
m<1>Build Marine (<3>M<1>)<0>
To expand a bit more with the modding application of strings is that the new modder fad is to describe what the unit/building is and does with the string.

Just like in those fancy mods that explain what a unit named "rocket launcher" does.

The string format is like:
m<1>Build <3>M<1>arine<10> Marine is the most basic infantry unit. With their gauss rifles they can shoot fire rapidly<0>

The <10> is a new line. But you don't have to use the <10> you can just press enter on the string editing box in TBLpad and it will automatically read it as a new line tag.



fuck you all

Oct 23 2008, 12:31 pm EzDay281 Post #9



Quote
shadows of units are automatly created, so you have NOT to edit the shadows of them [you can't anyway; there aren't shadow.grp's for units :P ]
Uh... what? That's what the shad files are for. Only air units, generally, don't have shadow grps - they simply use a palette-shifted underlay of the base unit sprite set a number of pixels low. And what do you mean by "automatly created"?
...
Which, of course, means that the shadows for any non-air units will look funny if you do move them down, since you'll have a gap between the bottom of a unit and its shadow.
Quote
or just copy the building, paste it in the shadow box, then create the shadows in there, and remove the building again :P
Hey, that kinda stuff's pretty standard for anyone that does much graphic editing, anyways. =P I'm assuming that by "shadow box" you're speaking in the context of editing a building's shad file...



None.

Oct 23 2008, 8:43 pm Corbo Post #10

ALL PRAISE YOUR SUPREME LORD CORBO

Quote from EzDay281
Quote
shadows of units are automatly created, so you have NOT to edit the shadows of them [you can't anyway; there aren't shadow.grp's for units :P ]
Uh... what? That's what the shad files are for. Only air units, generally, don't have shadow grps - they simply use a palette-shifted underlay of the base unit sprite set a number of pixels low. And what do you mean by "automatly created"?

Actually, I believe only flying buildings don't have grps. I could be wrong though but I remember having this conversation with Farty.



fuck you all

Oct 24 2008, 2:50 am Phobos Post #11

Are you sure about that?

Quote from name:
Quote from EzDay281
Quote
shadows of units are automatly created, so you have NOT to edit the shadows of them [you can't anyway; there aren't shadow.grp's for units :P ]
Uh... what? That's what the shad files are for. Only air units, generally, don't have shadow grps - they simply use a palette-shifted underlay of the base unit sprite set a number of pixels low. And what do you mean by "automatly created"?

Actually, I believe only flying buildings don't have grps. I could be wrong though but I remember having this conversation with Farty.

Some air units just don't have shadows. I've seen it myself. I can't name one of thsoe, however, because I know I might be wrong. I think the Corsair is one of those, however.



this is signature

Oct 24 2008, 11:35 am Angle Lock Post #12



thx guys....

oh and devourer, i feel kinda offended....

I actually had modding experience back in 2005 when Memgraft was still around... and I know how to use IceCC, Firegraft, and Retrogrp....

so i am definately not a beginner....



None.

Oct 24 2008, 12:40 pm Devourer Post #13

Hello

Quote from Angle Lock
thx guys....

oh and devourer, i feel kinda offended....

I actually had modding experience back in 2005 when Memgraft was still around... and I know how to use IceCC, Firegraft, and Retrogrp....

so i am definately not a beginner....

ok sorry... didn't know... well but all I have posted was right, and you dont need to know the very specific details... I think there may are some well known modder who don't care why that works like that....
I just have offerd you my help :l



Please report errors in the Staredit.Network forum.

Oct 24 2008, 5:30 pm Sand Wraith Post #14

she/her

Quote from Devourer
ok sorry... didn't know... well but all I have posted was right, and you dont need to know the very specific details... I think there may are some well known modder who don't care why that works like that....
That modder should die, especially considering the very nature of modding.

Quote from Devourer
I just have offerd you my help :l
Good for you.
But giving a man a fish will only feed him once.

-

At this point, I can't really help much since you've already been helped.

But hey, here's something you probably knew (or just in case you didn't):
All ground-anything have custom/their own GRP shadows (or something of the sort). I believe most air units and other flying buildings use their own graphics in a "shadow" palette.




Oct 24 2008, 11:02 pm poiuy_qwert Post #15

PyMS and ProTRG developer

Quote from Devourer
well but all I have posted was right

Actually no not everything was correct:
Quote from Devourer
then the code <1> to show those letters behind in the light-blue color

If you had read the link i provided you would know that is not what it does.

Quote from Devourer
and you dont need to know the very specific details... I think there may are some well known modder who don't care why that works like that....
I just have offerd you my help :l

It doesn't matter what you think, you are trying to help someone right now, and help people down the line with the same problem, so you should give a full correct answer. Its like if someone asks "Whats 2+2?" and you say "It's 4, but you dont have to know what the + means"




Oct 28 2008, 8:01 am EzDay281 Post #16



Quote
Actually, I believe only flying buildings don't have grps. I could be wrong though but I remember having this conversation with Farty.
Code
ScourgeInit:
    imgul               1 0 42     # ScourgeShad (zerg\avenger.grp)

Scourge, GRP File = 1 = zerg\avenger.grp
Scourge Shadow, GRP File = 1 = zerg\avenger.grp.
The shadow image.dat entries for air units are, with no exception I can think of off the top of my head, always just the original grps, but with palette set to shadow, rather than standard. And just to be sure, I checked Queen, Mutalisk, Guardian, Devourer, Overlord - none of them use shadow grps. I suppose the files might exist, but if they do, they're unused.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[09:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[09:35 pm]
Vrael -- that is insane
[09:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 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
Please log in to shout.


Members Online: Roy