[LUA] Access violation problem menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] Access violation problem

    Hello nice peoples of MMOwned

    Ive ran into a little problem with one of my scripts.

    Here is some parts of the script;

    Code:
    local HighlordTirionFordring1
    
    RegisterUnitEvent(70012, 18, "HighlordTirionFordring_declare")
    
    function HighlordTirionFordring_declare(unit, event)
            HighlordTirionFordring1 = unit
            unit:RegisterEvent("HighlordTirionFordring_event_phase1", 7000, 1)
    end
    
    function HighlordTirionFordring_event_phase1(unit, event)
            HighlordTirionFordring1:SendChatMessage(14, 0, "Lieutnant, The trainees is ready, bring them in!")
            HighlordTirionFordring1:RegisterEvent("HighlordTirionFordring_event_phase2", 7000, 1)
    end
    At the "phase1", it crashes the server 7 seconds after the chat message is sent, with the reason "access violation"

    I have tryed to delete the register of phase2, but the crash still happens

    I am using the latest ArcEmu rev.

    Any ideas on this one?..
    [/COLOR]

    [LUA] Access violation problem
  2. #2
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well 7 seconds is when
    HighlordTirionFordring_event_phase2

    is started can you give us the code for that

  3. #3
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tryed to delete the register of phase2, but the crash still happens
    Isnt that

    Here is all the code
    Lua pastebin - collaborative debugging tool
    [/COLOR]

  4. #4
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try making this
    Code:
    HighlordTirionFordring1:SpawnCreature(70016, 45.486561+1, 125.466896, -132.073303, 4.137465, 814, 0)
    HighlordTirionFordring1:SpawnCreature(70017, 45.486561+2, 125.466896, -132.073303, 4.137465, 814, 0)
    HighlordTirionFordring1:SpawnCreature(70018, 45.486561+3, 125.466896, -132.073303, 4.137465, 814, 0)
    to this

    Code:
    HighlordTirionFordring1:SpawnCreature(70016, 45.486562, 125.466896, -132.073303, 4.137465, 814, 0)
    HighlordTirionFordring1:SpawnCreature(70017, 45.486563, 125.466896, -132.073303, 4.137465, 814, 0)
    HighlordTirionFordring1:SpawnCreature(70018, 45.486564, 125.466896, -132.073303, 4.137465, 814, 0)
    Thats the only thing that looks even slightly out of place with the code, when phase 2 registers.
    Last edited by Vision1000; 06-22-2009 at 01:02 PM.

  5. #5
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also tryed that.. as ive already wrote.. Not in phase2
    [/COLOR]

  6. #6
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe its not even the script? But maybe one of your NPC's has some bad entrys in their proto / spawn.

    Can you post the crash dump, above where the crash report breaks?

  7. #7
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [/COLOR]

  8. #8
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to open it up and post where it breaks :x, I can't do it on my computer becuase i don't have the same rev of arcemu-world.exe as you do.

    Open it up with Visual Studio -> right click in solution explorer on dump-arcemu-world.exe-revision-ect -> debug -> start as new instance.

    If its a repack theres not much we can do :x
    Last edited by Vision1000; 06-22-2009 at 01:55 PM.

  9. #9
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It isn't.. just got a problem opening the dump..
    [/COLOR]

  10. #10
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    instead of
    Code:
    HighlordTirionFordring1:SendChatMessage(...)
    just do
    Code:
    unit:SendChatMessage(...)
    you should have no need for declaring a separate variable to keep track of the mob

    also just a note... "the trainees is ready" ?

  11. #11
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now edited, same error
    [/COLOR]

  12. #12
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Post the whole script please. Don't tell me it's "just this part", people have before...

  13. #13
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Exacute View Post
    Isnt that

    Here is all the code
    Lua pastebin - collaborative debugging tool
    already given the link
    [/COLOR]

  14. #14
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    oh right I'm blind sometimes <.<.

    Cant see any errors from quickly reading through it, try the following few things:

    Change all your variables and function names to qualitative instead of quanitative parts (e.g one instead of 1).
    Change event to Event in the function name.
    Instead of using Register Event 1 time use 0 then remove events on the next part.

    If that doesn't work then I'm cunfuzzled as it should, check if theres any errors with the map it's self or the npc.

  15. #15
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nop harry..
    Doesn't work either -.*
    But thanks for your try anyway...
    [/COLOR]

Page 1 of 2 12 LastLast

Similar Threads

  1. Access Violation Problem ( Rep if u can help me)
    By TheZaronz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-16-2008, 02:12 PM
  2. [Ascent] Server Crash Access Violation Error [Help]
    By jklei18 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:09 AM
  3. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
  4. I got this error in ascent (52 level up informations generated) an access violation??
    By PRIMO12 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 01-09-2008, 09:31 PM
  5. Access Violation
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 11-19-2007, 07:11 PM
All times are GMT -5. The time now is 11:21 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search