January 24, 2022, 08:57:38 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: NoBullshit.gml  (Read 1681 times)

notajf

  • Guest
NoBullshit.gml
« on: June 01, 2012, 10:10:53 am »

Skips the faucet loading screen and goes straight to the lobby.
Code: [Select]
var o;
o = object_add();
object_event_add(o, ev_step, 0, '
    room_goto_fix(Lobby);
');
instance_create(0, 0, o);
« Last Edit: June 01, 2012, 12:07:09 pm by »
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: NoBullshit.gml
« Reply #1 on: June 01, 2012, 11:52:18 am »

You realise this might destroy all other plugins that are loaded afterwards because the sandbox isn't persistent?

I'm not sure, but it's a possibility.
Logged

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1751
Re: NoBullshit.gml
« Reply #2 on: June 01, 2012, 11:56:19 am »

I strongly discourage roomchanges *during* plugin loading. Room changes in GM are very very strange beasts, and IIRC they will prevent all other event calls until the current event is done and the room change is actually performed by GM.
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.

notajf

  • Guest
Re: NoBullshit.gml
« Reply #3 on: June 01, 2012, 11:58:19 am »

I strongly discourage roomchanges *during* plugin loading. Room changes in GM are very very strange beasts, and IIRC they will prevent all other event calls until the current event is done and the room change is actually performed by GM.
...yeah, that wasn't too smart. I'll refactor it.
Logged

notajf

  • Guest
Re: NoBullshit.gml
« Reply #4 on: June 01, 2012, 12:07:11 pm »

Fixed.
Logged

Samwise The Brave

  • Guest
Re: NoBullshit.gml
« Reply #5 on: June 03, 2012, 11:37:15 pm »

i still have to see faucet intro for four (4) seconds before it jumps to the lobby
Logged

billymaze

  • Veteran Member
  • ******
  • Karma: 9
  • Offline Offline
  • Posts: 7419
Re: NoBullshit.gml
« Reply #6 on: June 03, 2012, 11:50:07 pm »

PS, you can just click during the faucet screen to skip it, too.
Logged

Samwise The Brave

  • Guest
Re: NoBullshit.gml
« Reply #7 on: June 03, 2012, 11:53:19 pm »

i know but still cant the script just skip to lobby?
Logged

Fish

  • Guest
Re: NoBullshit.gml
« Reply #8 on: June 04, 2012, 12:13:38 am »

No one can possibly be that lazy.
Logged

notajf

  • Guest
Re: NoBullshit.gml
« Reply #9 on: June 04, 2012, 01:06:55 am »

i know but still cant the script just skip to lobby?
It works for me, goes instantly =/
Logged
Pages: [1]
 

Page created in 0.048 seconds with 37 queries.