Jump to content


Photo

GTA IV Style Loading


  • Please log in to reply
7 replies to this topic

#1 mme

mme

    MME

  • GMC Member
  • 1007 posts

Posted 15 September 2011 - 05:07 PM

For those users that like to have a loading screen found in the game GTA IV this is a very simple extension that mimics this effect.

Posted Image

DOWNLOAD
gta_md.zip

Please note this extension is very simple and is intended for users who do not know how to make something like this.

If you have any suggestion please reply.
  • 1

#2 AlexTM

AlexTM

    GMC Member?

  • GMC Member
  • 1421 posts
  • Version:GM8

Posted 15 September 2011 - 07:08 PM

For those users that like to have a loading screen found in the game GTA IV this is a very simple extension that mimics this effect.

DOWNLOAD
gta_md.zip

Please note this extension is very simple and is intended for users who do not know how to make something like this.

If you have any suggestion please reply.


Mint. I think it looks great, i love seing stuff about GTA4 on the GMC. I didn't know people other than me still take interest in it :thumbsup:
it would be cool if you could do that for the actual screen for when the game is loading, but i think that is impossible. :sleep: Nice!
  • 0

#3 gm_user_tronic

gm_user_tronic

    GMC Member

  • GMC Member
  • 45 posts
  • Version:GM7

Posted 22 September 2011 - 09:06 AM

kind of fun to mess with. good job.
  • 0

#4 kmccmk9

kmccmk9

    GMC Member

  • GMC Member
  • 134 posts

Posted 15 December 2011 - 03:44 AM

For those users that like to have a loading screen found in the game GTA IV this is a very simple extension that mimics this effect.

Posted Image

DOWNLOAD
gta_md.zip

Please note this extension is very simple and is intended for users who do not know how to make something like this.

If you have any suggestion please reply.


Hi! I really want to use this, however I keep getting an error about invalid arguments:
__________________________________________
COMPILATION ERROR in extension package GTA Load Screen
Error in code at line 99:
   obi.md_bg_fore=sprite_add(file,0,1,1,0,0);

at position 42: Wrong number of arguments to function or script.
This is the code I'm using to start it.
scr_md_gta_init("LoadingScreen/bg1.png","LoadignScreen/fg1.png",scr_LoadingScreen); 
scr_md_gta_show();

  • 0

#5 mme

mme

    MME

  • GMC Member
  • 1007 posts

Posted 15 December 2011 - 04:56 PM

Hi! I really want to use this, however I keep getting an error about invalid arguments:

__________________________________________
COMPILATION ERROR in extension package GTA Load Screen
Error in code at line 99:
   obi.md_bg_fore=sprite_add(file,0,1,1,0,0);

at position 42: Wrong number of arguments to function or script.
This is the code I'm using to start it.
scr_md_gta_init("LoadingScreen/bg1.png","LoadignScreen/fg1.png",scr_LoadingScreen); 
scr_md_gta_show();


Can you please tell me what you get by running the following code?

r=scr_md_gta_init("LoadingScreen/bg1.png","LoadignScreen/fg1.png",scr_LoadingScreen); 

    	if r=-1 {show_message('Background File Not Found');}
    	if r=-2 {show_message('Foreground File Not Found');}
    	if r=-3 {show_message('Error creating core service');}
    	if r=-4 {show_message('Script not found');}

if r=1 {show_message('Everything is working');}

Regards,

MD (mme)
  • 0

#6 kmccmk9

kmccmk9

    GMC Member

  • GMC Member
  • 134 posts

Posted 16 December 2011 - 12:44 AM


Hi! I really want to use this, however I keep getting an error about invalid arguments:

__________________________________________
COMPILATION ERROR in extension package GTA Load Screen
Error in code at line 99:
   obi.md_bg_fore=sprite_add(file,0,1,1,0,0);

at position 42: Wrong number of arguments to function or script.
This is the code I'm using to start it.
scr_md_gta_init("LoadingScreen/bg1.png","LoadignScreen/fg1.png",scr_LoadingScreen); 
scr_md_gta_show();


Can you please tell me what you get by running the following code?

r=scr_md_gta_init("LoadingScreen/bg1.png","LoadignScreen/fg1.png",scr_LoadingScreen); 

    	if r=-1 {show_message('Background File Not Found');}
    	if r=-2 {show_message('Foreground File Not Found');}
    	if r=-3 {show_message('Error creating core service');}
    	if r=-4 {show_message('Script not found');}

if r=1 {show_message('Everything is working');}

Regards,

MD (mme)


Sure! With this code, I get this error:

___________________________________________
COMPILATION ERROR in extension package GTA Load Screen
Error in code at line 99:
   obi.md_bg_fore=sprite_add(file,0,1,1,0,0);

at position 42: Wrong number of arguments to function or script.

It could be that I'm using GM7?

Edited by kmccmk9, 16 December 2011 - 12:48 AM.

  • 0

#7 mme

mme

    MME

  • GMC Member
  • 1007 posts

Posted 02 January 2012 - 12:28 AM

Sure! With this code, I get this error:


___________________________________________
COMPILATION ERROR in extension package GTA Load Screen
Error in code at line 99:
   obi.md_bg_fore=sprite_add(file,0,1,1,0,0);

at position 42: Wrong number of arguments to function or script.

It could be that I'm using GM7?


Sorry for the late reply,

I have looked into this issue and found that GM7 is not compatible sorry. However using GM8 is working fine, I suggest you use GM8 to see if this solves your problem.

Regards,

MD (mme)
  • 0

#8 kburkhart84

kburkhart84

    GMC Member

  • GMC Member
  • 1606 posts
  • Version:GM:Studio

Posted 11 January 2012 - 01:09 AM

It is not entirely impossible. I do all my loading in the game start event and draw a background refresh and fade the IV load theme in the background. This could be done if GM would stream resources or let the resource loading be a seperate process so the game could continue rendering. Let me know if you come up with way that it could be done though! :smile:


It is possible. I was actually working on an extension that could do it, but I've stopped because it is a lot of work, and GM9 is going to change a lot of things, including maybe make my extension obsolete if the same thing gets implemented internally.

The way I was going about it was creating a list of things that need loaded(sounds, backgrounds, sprites) and then having an object every few steps load an item or two from the list. Since that object is doing it little by little, you can still render whatever you want meanwhile. You could go all out, and create an external program which would create a file that defines things you need to load for a given level. Then your extension would load those files like I mention above. It could also unload those things later, when you need to change to another level, allowing your memory usage to stay low.

Like I said though, it may not be worth doing all that work if you don't need to, considering GM9 is going to be very different, things may no longer be all stuck in memory at the same time, and so it may not be worth the time to create such code/extension.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users