S
Sam (Deleted User)
Guest
Edit: Anyone else want this feature? YoYo responded to my ticket saying they would consider it in a future release if enough people on the GMC wanted it! (Original topic contents below, but the discussion has changed to requesting this function).
Anyone know what this function from GM 8.1 does? I'm not really clear on this. Not very well documented.
It sounds like something that could be really really useful for extension writers if YoYo brought the function back in GameMaker Studio. I have a couple guesses as to what it does, but it's still a little confusing to me...
Is it basically a way to call a function from a string?
I tried this in 8.1 but nothing happened, (it returns -1):
So I tried getting the return value with this, (using just 'show_message'):
And it outputted in the textbox this:
So that's the address, I guess... Not sure what I do with it?
Thanks!
Samuel
Anyone know what this function from GM 8.1 does? I'm not really clear on this. Not very well documented.
That quote was taken from the bottom of this webpage: http://gamemaker.info/en/manual/414_00_dllsget_function_address('function_name') Returns the address of a GameMaker function. This can be passed to DLL's so the can call directly into GameMaker.
This feature is unsuported, so care must be taken when using this function.
Please Note: These functions use Delphi 2010 PASCAL calling convention and string formats.
It sounds like something that could be really really useful for extension writers if YoYo brought the function back in GameMaker Studio. I have a couple guesses as to what it does, but it's still a little confusing to me...
Is it basically a way to call a function from a string?
I tried this in 8.1 but nothing happened, (it returns -1):
Code:
get_function_address('show_message("poop")')
Code:
get_string("",string(get_function_address('show_message')));
Code:
6567176
Thanks!
Samuel
Last edited by a moderator: