Log in

View Full Version : Game ready callback done properly



webmanix
07-09-2013, 04:53 AM
So far on my quest for the proper game ready callback, ive been trying to track functions that actually load the game, so when they finish i start vaultmp, the idea is to make the project compatible and clean without the need to manually change inittime to maximize performance (load game as soon as ready, on a slow or fast computer).

Ive been working with functions that load textures and stuff, but it looks like the game need something else more specific to start, does anyone have clues? What does fallout has to load before being actually READY to enter in-game? Wich information is so critical on the pre-loading that can crash the client if its not present? (Vaultmp launches a loading screen, but it doesnt load whatever is on this pre-loading stage and its critical to start the game)

I tracked the loading of menus and textures (wich actually work on a few computers) but it feels like something is missing. Im open for suggestions on what to look for.

roby65
07-09-2013, 11:35 AM
Afaik the method used now its perfect, it loads the game before the main menu!
I think foxtacles used the last method you discovered :)

Volumed
07-09-2013, 01:19 PM
Have you tried, to turn it off and on again?

foxtacles
07-09-2013, 03:54 PM
No, it still relies on inittime. So there is no proper solution to it yet.

We are looking for a way to tell when vaultmp can start interacting with the game. This varies from computer to computer and depends on how fast the game boots. A callback would be best, I could poll for success but that is awkward

roby65
07-09-2013, 05:27 PM
No, it still relies on inittime. So there is no proper solution to it yet.

We are looking for a way to tell when vaultmp can start interacting with the game. This varies from computer to computer and depends on how fast the game boots. A callback would be best, I could poll for success but that is awkward

I can know when a certain texture is loaded. Maybe this is usefull?

foxtacles
07-09-2013, 06:43 PM
I can know when a certain texture is loaded. Maybe this is usefull?

Not sure, I guess you would need to try out. The callback should hit shortly before the main menu of the game pops up.

webmanix
07-10-2013, 03:15 AM
Just remembered that when the game is actually ready, when you hit ESC key, it gives you the main menu... But tracking the event that actually handles the key might be somewhat hard, i will work on that.

But to test this kind of thing we need ppl ._. last time i did it with new vegas but the ammout of ppl testing was not enuf to make it solid for release :(

Now it comes to my mind that i can track the momment the main menu shows up hmmm... So when ppl actually try to start the game (normally) it will load vaultmp!

Volumed
07-10-2013, 11:13 AM
Just remembered that when the game is actually ready, when you hit ESC key, it gives you the main menu... But tracking the event that actually handles the key might be somewhat hard, i will work on that.

But to test this kind of thing we need ppl ._. last time i did it with new vegas but the ammout of ppl testing was not enuf to make it solid for release :(

Now it comes to my mind that i can track the momment the main menu shows up hmmm... So when ppl actually try to start the game (normally) it will load vaultmp!

Objection! Does the game not close down when you press ESC when VaultMP is running?
I will always test with you webie the little slave. ;) (a kid means slavery)
screw the main menu delete that shit don't edit don't do anything with it (I mean like in SA-MP), VaultMP client all the way!

foxtacles
07-10-2013, 12:06 PM
Objection! Does the game not close down when you press ESC when VaultMP is running?

This will change in the next release (exit button in the GUI)

Xolitude
07-10-2013, 02:42 PM
I'll be there to test as-well =3

webmanix
07-11-2013, 12:26 AM
Back then i developed things by myself using my notebook (so i could test) but now, my notebook is gone and my desktop needs format to work with mingw once again i guess (it is really messed up)

Once i find a way to actually compile code i will start testing what i found. ANd you guys, will be MAH SLAVES testing it ._.

Volumed
07-11-2013, 01:18 AM
Back then i developed things by myself using my notebook (so i could test) but now, my notebook is gone and my desktop needs format to work with mingw once again i guess (it is really messed up)

Once i find a way to actually compile code i will start testing what i found. ANd you guys, will be MAH SLAVES testing it ._.

Noooo, you're my slave scripter you make VaultMP for MAH! and I only test because I'm a really nice master you know.

webmanix
07-19-2013, 11:07 PM
Good news mortalz, i should be able to compile my findings this weekend (sunday prolly) will any1 be available to help me run some tests? I should run the tests around 1pm~7pm (UTC-3 time)

foxtacles
07-19-2013, 11:23 PM
Good news mortalz, i should be able to compile my findings this weekend (sunday prolly) will any1 be available to help me run some tests? I should run the tests around 1pm~7pm (UTC-3 time)

Sure, just note me in IRC and I will be available :)

webmanix
07-20-2013, 04:21 AM
Just amazing then i tried tracking the function that triggers the main menu to become available and i guess i got it this time, if i am right, this is the correct momment to load vaultmp =D