Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Event System

  1. #1

    Default Event System

    I'm confused why these aren't working? Not sure if it is me or not.

    I registered the following...
    //REBORN EVENT REGISTERING
    registerev "kill" global/killhandler.scr
    registerev "connected" global/connectedhandler.scr
    registerev "spawn" global/spawnhandler.scr

    connected is working, but not the other 2??

    Haven't tried the other ones yet.

    edited: Just tried keypress and damage, and was unsuccessful with that also. Connected is the only one that worked for me.
    Last edited by armageddon; July 31st, 2011 at 09:19 PM.

  2. #2

    Default

    On a side note. To get around the bug of the event "spawn" not working at map changes, this should work:

    If you have registered connected event, then at client connect, you could check if player has a .dmteam other than spectator, and if so, then
    exec global/spawnhandler.scr local.player

    ie:

    global/connectedhandler.scr
    Code:
    main local.player:
    
    	if(local.player.dmteam != "spectator")
    		exec global/spawnhandler.scr local.player
    
    end
    Last edited by armageddon; July 31st, 2011 at 09:06 PM.

  3. #3
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    They all should work without any problems because I tested all of them including Linux release.

    Check if you don't have any Detour Setup Erros during patch initialization.

    And try to register events using threads in one script file, because it's how I tested them later.

    (one file and many threads inside of it)

  4. #4

    Default

    Reborn EXCEPTION: G_Init - DetoursSetup! EXCEPTION CODE: -1073741819

  5. #5

    Default

    I also tried one file with different threads, but it did the same. I am testing the Windows Release.

  6. #6
    Über Prodigy & Developer Razo[R]apiD's Avatar
    Join Date
    May 2010
    Location
    Poland, Lublin
    Posts
    3,257

    Default

    change gamex86mohaa.dll

    it will fix your problem.

  7. #7

    Default

    ahha, I changed gamex86mohaa.dll, and it didn't help. I had that one already. I changed mohaa_server.exe, and now it is working. Thanks!

  8. #8

    Default

    what does this so called eventsystem do? Whats the purpose?

  9. #9
    Administrator JoTo's Avatar
    Join Date
    May 2010
    Location
    www.scapp.net
    Posts
    1,953

    Default

    Quote Originally Posted by Murdock View Post
    what does this so called eventsystem do? Whats the purpose?
    hehe good question.

    From how I understand a Event driven system that would be a function that you define in your script that gets called (callback, triggered) as soon a specified Event occurs. Is it working like that here ?

  10. #10

    Default

    Yes, its in the new beta release. You can set it up to execute scripts when these events happen. (player killed,player took damage,player connected to server, player spawned+ another one I havent tried yet. Check out the Documentation section.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •