• Welcome to Valhalla Legends Archive.
 

Pass parameters to main SC/BW draw text function

Started by LuMiNuS, July 13, 2003, 10:21 PM

Previous topic - Next topic

LuMiNuS

I've located the main SC/BW(1.10) draw text function but i'm having some difficulties on how to/and which parameters to pass to it so that i can display my text like minerals count.Anyone can help?

TheMinistered

Are you referring to the function that is used to draw player messages?


nickolay


TheMinistered

#4
I *think* STORM_501 is documented by my brother as:  DWORD __stdcall SStrCpy(char *lpDestination,char *lpSource,DWORD dwMaxLength)

Banana fanna fo fanna

We should all get together and map storm.dll

Skywing

Quote from: St0rm.iD on July 15, 2003, 02:45 PM
We should all get together and map storm.dll
That has, for the most part, already been done.

LuMiNuS

#7
Quote from: TheMinistered on July 15, 2003, 12:20 PM
I *think* STORM_501 is documented by my brother as:  DWORD __stdcall SStrCpy(char *lpDestination,char *lpSource,DWORD dwMaxLength)
From a quick lood to IDA,he maybe right.But *lpDestination where should point to??(prolly screen, but how..)

indulgence

Or you could try by debugging and tracing... Then you can have pride that you found it yourself - because I doubt anyone is going to hand you that information
<3

Adron

Note that as this topic drifts towards things that have been done and discussed before, it's also drifting off topic for this forum...

However, if you want to collaborate and make a public map of storm, go ahead. It's one of those things that could be good to have.

Start by agreeing on a format for how you are going to document it. Think about how you will merge contributions smoothly. Try to import existing collections of information. Then start adding pieces - if you get it going good you're sure to pick up more helpers on the way.

And if it turns out good I'm sure someone will host it and extend it to documenting other programs.



Banana fanna fo fanna

Quote from: Adron on July 16, 2003, 08:55 AM
Note that as this topic drifts towards things that have been done and discussed before, it's also drifting off topic for this forum...

However, if you want to collaborate and make a public map of storm, go ahead. It's one of those things that could be good to have.

Start by agreeing on a format for how you are going to document it. Think about how you will merge contributions smoothly. Try to import existing collections of information. Then start adding pieces - if you get it going good you're sure to pick up more helpers on the way.

And if it turns out good I'm sure someone will host it and extend it to documenting other programs.




That's what I'm trying to do.

LuMiNuS

Anyway...displaying text like minerals is more difficult than i thought.Seems like there a seperate Label(or something) for mins/gas/supply(including the icons).Any attemption to display the text of minerals/gas/supply outside that Label will make the text that is displayed outside the Label to flicker.