Portal-Zone Gothic-Zone Gothic II-Zone Gothic 3-Zone Gothic 4-Zone Modifikationen-Zone Download-Zone Foren-Zone RPG-Zone Almanach-Zone Spirit of Gothic

 

Ergebnis 1 bis 5 von 5
  1. Homepage besuchen Beiträge anzeigen #1 Zitieren
    Team Velen
    Registriert seit
    Aug 2015
    Beiträge
    952
     
    Bloodfly91 ist offline

    Gothic crasht wegen Skript

    Hallo,
    ich suche nun schon ewig nach einer Möglichkeit, Helme die durch EquipItem einem NPC gegeben werden, sichtbar zu machen. Gestern habe ich dieses Skript HIER im Forum gefunden:

    Code:
    func void Equip_Item (var c_npc slf, var int ItemInst) 
    {
        if (!Npc_HasItems (slf, ItemInst)) 
        {
            CreateInvItems (slf, ItemInst, 1);
        };
    
        CALL_PtrParam (MEM_InstToPtr (ItemInst));
        CALL__thiscall (MEM_InstToPtr (slf), 7545792);
    };
    In das Skript vom NPC habe ich
    Code:
    Equip_Item (self, ItHl_DIV_Wache_L);
    eingetragen.


    Problem ist, dass Gothic jetzt einfach jedes mal crasht, wenn ich ein neues Spiel starte. Die Fehlermeldung, die in zSpy steht, hilft mir auch nicht wirklich...

    Code:
     .... <zWin32.cpp,#2977>
    [w] 00:53 Warn:  0 ==      ============================================= CALLSTACK : ============================================================== .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00791B68 (0x00000235 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+520 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1369+12 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x00000235 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x00000373 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x0000070A 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x00000AA4 0x00AB40C0 0x26B9EB30 0x000050D9) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x0002EBE8 0x2D4A4478 0x2D4A4038 0x0072F161) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792FF7 (0x000B707E 0x2D4A4038 0x000050D9 0x2D4A4038) Gothic2.exe, zCParser::CreateInstance()+87 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1586+12 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:0072F161 (0x000050D9 0x00000000 0x274E4B88 0x00000000) Gothic2.exe, oCNpc::InitByScript()+753 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oNpc.cpp, line 1642 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:0076FDC7 (0x2D4A4038 0x00AB40C0 0x00000000 0x00000003) Gothic2.exe, oCObjectFactory::CreateNpc()+167 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oObjFactory.cpp, line 98 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:0077F5B7 (0x000050D9 0x0135F7D4 0x00000000 0x00000000) Gothic2.exe, oCWorld::CreateVob()+455 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oWorld.cpp, line 323+42 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:006DF272 (0x00AB4108 0x00000000 0x00AB40C0 0x001635E5) Gothic2.exe, zSTRING::Init()+22258 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGameExternal.cpp, line 1527+101 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792568 (0x006DF1F0 0x27BA7CD0 0x00AB4118 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+3080 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1433 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792504 (0x00162271 0x008B23B3 0x0082E6F0 0x0341BFA0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00792CBF (0x00AB40C0 0x00005E43 0x0135FA9C 0x0135FAA0) Gothic2.exe, zCParser::CallFunc()+719 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1551 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:006C1E96 (0x0135FBD4 0x0341BFA0 0x0135FBD0 0x0135FB00) Gothic2.exe, oCGame::CallScriptStartup()+550 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 866 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:006C9FD9 (0x0135FA9C 0x0135FB6C 0xFFFFFFFE 0x0135FB6C) Gothic2.exe, oCGame::LoadWorldStartup()+969 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 3149 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:006C92DE (0xFFFFFFFE 0x0135FB00 0x0089078B 0x0135FCA0) Gothic2.exe, oCGame::LoadWorld()+558 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 2902 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:006C6696 (0xFFFFFFFE 0x0135FBD0 0x0082E6F0 0x00000000) Gothic2.exe, oCGame::LoadGame()+246 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 2147 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00429BF9 (0x00000000 0x00400000 0x033F364E 0x0135FEC4) Gothic2.exe, CGameManager::Menu()+2345 byte(s), P:\dev\g2addon\release\Gothic\_bert\oGameManager.cpp, line 1474 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00425C35 (0x0082F0EC 0x000603DA 0x000603DA 0x0341BFA0) Gothic2.exe, CGameManager::Run()+1029 byte(s), P:\dev\g2addon\release\Gothic\_bert\oGameManager.cpp, line 713 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:0078188B (0x0000002C 0x004F5E4C 0x00000039 0x00000000) Gothic2.exe, MainProg()+75 byte(s), P:\dev\g2addon\release\Gothic\_ulf\Phoenix.cpp, line 111 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00503270 (0x00400000 0x00000000 0x033F364E 0x00000007) Gothic2.exe, HandledWinMain()+928 byte(s), P:\dev\g2addon\release\ZenGin\_carsten\zWin32.cpp, line 1169 .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:00502DFD (0x0135FEC8 0x00000000 0x033F364E 0x00000007) Gothic2.exe, WinMain()+141 byte(s), P:\dev\g2addon\release\ZenGin\_carsten\zWin32.cpp, line 1054+17 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 00      23:007D43F8 (0x00000004 0x0000FFFF 0x000000B8 0x00000000) Gothic2.exe, WinMainCRTStartup()+224 byte(s) .... <zError.cpp,#474>
    [w] 00:53 Warn:  0 ==      ===================================== UNHANDLED EXCEPTION OCCURED ====================================================== .... <zError.cpp,#474>
    [w] 01:06 Warn:  0 B:       GMAN: gameSession is existing. Call CGameManager::Done() before! .... <oGameManager.cpp,#375>

    Geändert von Bloodfly91 (21.04.2018 um 13:37 Uhr)

  2. Beiträge anzeigen #2 Zitieren
    Dea
    Registriert seit
    Jul 2007
    Beiträge
    10.447
     
    Lehona ist offline
    Ich bin mir sicher die Adresse (7545792) ist für Gothic 1, nicht für Gothic 2. Für Gothic 2 sollte folgende Adresse (besser) funktionieren:

    Code:
    //EngineAdr_G2.d
    const int oCNpc__Equip                              = 7576720; //0x739C90
    P.S.: Lass bitte die Standardschriftart in Code-Blöcken (die Fehlermeldung bei dir), Times New Roman hat anscheinend keine monospaced Version oder das wird von der Einstellung überschrieben, dann verschiebt sich alles total unschön.

    Edit: Die Adresse ist wohl doch nicht für G1, aber eine andere Funktion als oCNpc::Equip Kannst es ja trotzdem mal damit versuchen.

  3. Homepage besuchen Beiträge anzeigen #3 Zitieren
    Team Velen
    Registriert seit
    Aug 2015
    Beiträge
    952
     
    Bloodfly91 ist offline
    Zitat Zitat von Lehona Beitrag anzeigen
    Ich bin mir sicher die Adresse (7545792) ist für Gothic 1, nicht für Gothic 2. Für Gothic 2 sollte folgende Adresse (besser) funktionieren:

    Code:
    //EngineAdr_G2.d
    const int oCNpc__Equip                              = 7576720; //0x739C90
    P.S.: Lass bitte die Standardschriftart in Code-Blöcken (die Fehlermeldung bei dir), Times New Roman hat anscheinend keine monospaced Version oder das wird von der Einstellung überschrieben, dann verschiebt sich alles total unschön.

    Edit: Die Adresse ist wohl doch nicht für G1, aber eine andere Funktion als oCNpc::Equip Kannst es ja trotzdem mal damit versuchen.
    Ja, das war auch meine erste Vermutung. Habe dann nachgeschaut und die stand aber in der EngineAdr_G2.d mit drinnen.

    Ich habe es jetzt mal mit 7576720 probiert, crasht aber trotzdem.

    Code:
     .... <zWin32.cpp,#2977>
    [w] 00:25 Warn:  0 ==      ============================================= CALLSTACK : ============================================================== .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00791B68 (0x00000235 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+520 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1369+12 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x00000235 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x00000373 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x0000070A 0x00AB4108 0x00000000 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x00000AA4 0x00AB40C0 0x27FA53C8 0x000050D9) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x0002EBE8 0x2D144F00 0x2D144AC0 0x0072F161) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792FF7 (0x000B707E 0x2D144AC0 0x000050D9 0x2D144AC0) Gothic2.exe, zCParser::CreateInstance()+87 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1586+12 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:0072F161 (0x000050D9 0x00000000 0x275088C8 0x00000000) Gothic2.exe, oCNpc::InitByScript()+753 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oNpc.cpp, line 1642 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:0076FDC7 (0x2D144AC0 0x00AB40C0 0x00000000 0x00000000) Gothic2.exe, oCObjectFactory::CreateNpc()+167 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oObjFactory.cpp, line 98 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:0077F5B7 (0x000050D9 0x0135F7D4 0x00000000 0x00000000) Gothic2.exe, oCWorld::CreateVob()+455 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oWorld.cpp, line 323+42 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:006DF272 (0x00AB4108 0x00000000 0x00AB40C0 0x001635E5) Gothic2.exe, zSTRING::Init()+22258 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGameExternal.cpp, line 1527+101 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792568 (0x006DF1F0 0x28A18A28 0x00AB4118 0x00AB40C0) Gothic2.exe, zCParser::DoStack()+3080 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1433 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792504 (0x00162271 0x008B23B3 0x0082E6F0 0x1812FE40) Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00792CBF (0x00AB40C0 0x00005E43 0x0135FA9C 0x0135FAA0) Gothic2.exe, zCParser::CallFunc()+719 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1551 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:006C1E96 (0x0135FBD4 0x1812FE40 0x0135FBD0 0x0135FB00) Gothic2.exe, oCGame::CallScriptStartup()+550 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 866 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:006C9FD9 (0x0135FA9C 0x0135FB6C 0xFFFFFFFE 0x0135FB6C) Gothic2.exe, oCGame::LoadWorldStartup()+969 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 3149 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:006C92DE (0xFFFFFFFE 0x0135FB00 0x0089078B 0x0135FCA0) Gothic2.exe, oCGame::LoadWorld()+558 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 2902 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:006C6696 (0xFFFFFFFE 0x0135FBD0 0x0082E6F0 0x00000000) Gothic2.exe, oCGame::LoadGame()+246 byte(s), P:\dev\g2addon\release\Gothic\_ulf\oGame.cpp, line 2147 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00429BF9 (0x00000000 0x00400000 0x033B364E 0x0135FEC4) Gothic2.exe, CGameManager::Menu()+2345 byte(s), P:\dev\g2addon\release\Gothic\_bert\oGameManager.cpp, line 1474 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00425C35 (0x0082F0EC 0x000A0568 0x000A0568 0x1812FE40) Gothic2.exe, CGameManager::Run()+1029 byte(s), P:\dev\g2addon\release\Gothic\_bert\oGameManager.cpp, line 713 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:0078188B (0x0000002C 0x0055CCE9 0x0000003E 0x00000000) Gothic2.exe, MainProg()+75 byte(s), P:\dev\g2addon\release\Gothic\_ulf\Phoenix.cpp, line 111 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00503270 (0x00400000 0x00000000 0x033B364E 0x00000007) Gothic2.exe, HandledWinMain()+928 byte(s), P:\dev\g2addon\release\ZenGin\_carsten\zWin32.cpp, line 1169 .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:00502DFD (0x0135FEC8 0x00000000 0x033B364E 0x00000007) Gothic2.exe, WinMain()+141 byte(s), P:\dev\g2addon\release\ZenGin\_carsten\zWin32.cpp, line 1054+17 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 00      23:007D43F8 (0x00000004 0x0000FFFF 0x000000B8 0x00000000) Gothic2.exe, WinMainCRTStartup()+224 byte(s) .... <zError.cpp,#474>
    [w] 00:25 Warn:  0 ==      ===================================== UNHANDLED EXCEPTION OCCURED ====================================================== .... <zError.cpp,#474>
    [w] 00:33 Warn:  0 B:       GMAN: gameSession is existing. Call CGameManager::Done() before! .... <oGameManager.cpp,#375>

  4. Beiträge anzeigen #4 Zitieren
    Dea
    Registriert seit
    Jul 2007
    Beiträge
    10.447
     
    Lehona ist offline
    Schreib mal MEM_InitAll() an den Anfang der Funktion Equip_Item.

  5. Homepage besuchen Beiträge anzeigen #5 Zitieren
    Team Velen
    Registriert seit
    Aug 2015
    Beiträge
    952
     
    Bloodfly91 ist offline
    Zitat Zitat von Lehona Beitrag anzeigen
    Schreib mal MEM_InitAll() an den Anfang der Funktion Equip_Item.
    Ja! Es funktioniert. Und die Helme sind so nun auch nicht mehr unsichtbar. Vielen Dank!

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
Impressum | Link Us | intern
World of Gothic © by World of Gothic Team
Gothic, Gothic 2 & Gothic 3 are © by Piranha Bytes & Egmont Interactive & JoWooD Productions AG, all rights reserved worldwide