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

 

Seite 30 von 34 « Erste ... 1923262728293031323334 Letzte »
Ergebnis 581 bis 600 von 668
  1. Beiträge anzeigen #581 Zitieren
    Ritter Avatar von Kirides
    Registriert seit
    Jul 2009
    Ort
    Norddeutschland
    Beiträge
    1.781
     
    Kirides ist offline
    can you repeat the steps with HRAV patch alongside the respective patch? (as mud-freak mentioned in https://forum.worldofplayers.de/foru...1#post26804248)

    So we can actually see what happens, and not just DoStack (which is even less useful with patches, as they move depending on the mod...)

  2. Beiträge anzeigen #582 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline
    Zitat Zitat von Kirides Beitrag anzeigen
    can you repeat the steps with HRAV patch alongside the respective patch? (as mud-freak mentioned in https://forum.worldofplayers.de/foru...1#post26804248)

    So we can actually see what happens, and not just DoStack (which is even less useful with patches, as they move depending on the mod...)
    I suspect that won’t work. I assume the crash happens due to the difference in the NPC class that is used to bootstrap Ikarus. If my hunch is right, Ikarus cannot be used in that mod.

    The idea of extending the NPC class lacked a bit of foresight… it should have worked, would any new variables be just appended at the end of the class. But there goes that… what a shame.

  3. Beiträge anzeigen #583 Zitieren
    Ritter Avatar von Kirides
    Registriert seit
    Jul 2009
    Ort
    Norddeutschland
    Beiträge
    1.781
     
    Kirides ist offline
    Zitat Zitat von mud-freak Beitrag anzeigen
    I suspect that won’t work. I assume the crash happens due to the difference in the NPC class that is used to bootstrap Ikarus. If my hunch is right, Ikarus cannot be used in that mod.

    The idea of extending the NPC class lacked a bit of foresight… it should have worked, would any new variables be just appended at the end of the class. But there goes that… what a shame.
    interesting. While i don't use many flags, in the GD3D11 renderer i use some of the npc class' members. Though i had to implement inheritance-proof oCNpc checks and could not solely rely on the vtbl anymore.
    while i don't know for sure, i think Union uses regular c++ syntax for inheritance "class oCNpcV2 : public oCNpc" this should lead to all members being "at the end" of the oCNpc class, or am i wrong?
    That's atleast the syntax that is used in Union tutorials


    Spoiler:(zum lesen bitte Text markieren)

    Code:
    template<class T>
    T* As() {
    	zCClassDef* classDef = ((zCObject*)this)->_GetClassDef();
    	if ( CheckInheritance( classDef, T::GetStaticClassDef() ) ) { // e.g. oCNpc::GetStaticClassDef() -> 0x00ab1e20
    		return reinterpret_cast<T*>(this);
    	}
    	return nullptr;
    }
    
    bool CheckInheritance( const zCClassDef* def, const zCClassDef* target ) {
    	while ( def ) {
    		if ( def == target ) {
    			return true;
    		}
    		def = def->baseClassDef;
    	}
    	return false;
    }

  4. Beiträge anzeigen #584 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline
    Zitat Zitat von Kirides Beitrag anzeigen
    interesting. While i don't use many flags, in the GD3D11 renderer i use some of the npc class' members. Though i had to implement inheritance-proof oCNpc checks and could not solely rely on the vtbl anymore.
    while i don't know for sure, i think Union uses regular c++ syntax for inheritance "class oCNpcV2 : public oCNpc" this should lead to all members being "at the end" of the oCNpc class, or am i wrong?
    That's atleast the syntax that is used in Union tutorials


    Spoiler:(zum lesen bitte Text markieren)

    Code:
    template<class T>
    T* As() {
    	zCClassDef* classDef = ((zCObject*)this)->_GetClassDef();
    	if ( CheckInheritance( classDef, T::GetStaticClassDef() ) ) { // e.g. oCNpc::GetStaticClassDef() -> 0x00ab1e20
    		return reinterpret_cast<T*>(this);
    	}
    	return nullptr;
    }
    
    bool CheckInheritance( const zCClassDef* def, const zCClassDef* target ) {
    	while ( def ) {
    		if ( def == target ) {
    			return true;
    		}
    		def = def->baseClassDef;
    	}
    	return false;
    }
    Ah okay. I wasn't aware it's just inheriting the class. Then I don't know what causes the crash - and if it even happens during the initialization of Ikarus. The only critical thing I was thinking of is the bootstrapping of writing at arbitrary memory addresses using the helper NPC. Other than that I don't see any class dependent action during the initialization of Ikarus (MEM_InitAll). That bootstrapping should be robust to an inherited class.

    One could replace the Hlp_Is_... functions in Ikarus with objCheckInheritance (in the ScriptBin), a function I wrote a while ago, which is the same thing you mention here. I cannot imagine, however, how that is the origin of the crash.

    I am not a big fan of this guessing game. If someone finds the root of the problem, I am happy to help adjust Ikarus.


    PS: So, HRAV may actually work here after all. May be worth a try.
    Geändert von mud-freak (27.07.2021 um 07:53 Uhr)

  5. Beiträge anzeigen #585 Zitieren
    Veteran Avatar von N1kX
    Registriert seit
    Aug 2018
    Ort
    Serov
    Beiträge
    644
     
    N1kX ist offline
    I tried to run the mod with HRAV, unfortunately it could not decrypt AS.


    You also probably missed my description of the work of Ninja itself - if you install it without patches, then the perceptions of the oCNpc class stop working - they become brainless.

  6. Beiträge anzeigen #586 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline
    Thanks for checking.
    It’s also related to the inherited NPC class. I have an idea where the problem happens and I should be able to fix it. I’m on vacation at the moment, but I am sure I can fix it soon.
    I will have a closer look at Ikarus too, to check if there are any more occasions with direct class checks.

  7. Beiträge anzeigen #587 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline
    Returning New Balance heavily uses Union and class inheritance for modifiying game behavior.

    This breaks things like Item/Npc checks for pointers (Hlp_Is_oCNpc, ...) and probably many more things.
    By the way, (I think) I have this fully fixed. I just haven't gotten around to release a new version of Ninja. I hope to get to it soon.

  8. Beiträge anzeigen #588 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline

    Version 2.7.11

    Es gibt eine neue Version von Ninja. Damit werden die neusten Änderungen von Ikarus und die neusten Änderungen von LeGo unterstützt. Intern wurden zwei Checks an zwei bestehende angeglichen für bessere Kompatibilität.

    Aktueller Download über Spine oder hier.

    Der Changelog findet sich hier.

  9. Beiträge anzeigen #589 Zitieren
    Veteran Avatar von N1kX
    Registriert seit
    Aug 2018
    Ort
    Serov
    Beiträge
    644
     
    N1kX ist offline
    Perceptions work in the new version of Return. Plugins seem to be running.
    The ItemLocator plugin, when trying to highlight objects, crashes the game, there is no AS, only an error Gothic2.exe
    Itemmap allows you to get AS
    Here it is
    Spoiler:(zum lesen bitte Text markieren)
    Code:
    //====================== CALLSTACK ========================
    0023:00791B68 (0x007A303F 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, mem_ptrtoinst()+123 byte(s) [zPAR_OP_IS] in Gothic2.exe, zCParser::DoStack()+520 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1369+12 byte(s)
    0023:00792504 (0x007A8198 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, mem_checkinheritance()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007A8328 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, hlp_is_ocitem()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007A31CF 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, mem_callbyptr()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007A637A 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, mem_callbyid()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007A31CF 0x00AB4108 0x00000000 0x00AB40C0) Daedalus, mem_callbyptr()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007A31E6 0x1D47ECB0 0x00AB4118 0x00AB40C0) Daedalus, mem_callbyoffset()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792504 (0x007AC15C 0x2C099C70 0x00000000 0x0135F6E0) Daedalus, locals()+0 byte(s) [zPAR_TOK_CALL] in Gothic2.exe, zCParser::DoStack()+2980 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1415
    0023:00792CBF (0x2C099C70 0x00849BC4 0x007D0AE4 0x2C099C70) Gothic2.exe, zCParser::CallFunc()+719 byte(s), P:\dev\g2addon\release\ZenGin\_ulf\zParser.cpp, line 1551
    0023:007D0AC9 (0x00000000 0x00000011 0x00000006 0x00000080) Gothic2.exe, __RTDynamicCast()+143 byte(s)
    //=====================================================

  10. Beiträge anzeigen #590 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline
    Zitat Zitat von N1kX Beitrag anzeigen
    Perceptions work in the new version of Return. Plugins seem to be running.
    The ItemLocator plugin, when trying to highlight objects, crashes the game, there is no AS, only an error Gothic2.exe
    Itemmap allows you to get AS
    Thanks for testing. I have sent you a private message.

  11. Beiträge anzeigen #591 Zitieren
    Ehrengarde Avatar von mud-freak
    Registriert seit
    Dec 2005
    Beiträge
    2.199
     
    mud-freak ist offline

    Version 2.7.12

    Ein kleiner Hotfix zur vorherigen Version. Danke an N1kX für die schnelle Hilfe beim Testen.

    Aktueller Download über Spine oder hier.

    Der Changelog findet sich hier.

  12. Beiträge anzeigen #592 Zitieren
    Ritter Avatar von FaChDa
    Registriert seit
    Mar 2006
    Ort
    München
    Beiträge
    1.940
     
    FaChDa ist offline
    Coole Sache. Danke für das Update!

  13. Beiträge anzeigen #593 Zitieren
    Ritter Avatar von Kirides
    Registriert seit
    Jul 2009
    Ort
    Norddeutschland
    Beiträge
    1.781
     
    Kirides ist offline
    Um das nochmal klarer auszudrücken:

    Mit der neuen Version von Ninja, sollten Patches nun noch viel kompatibler sein als zuvor.

    Gerade im zusammenhang mit Union und Mods welche auf Union basieren
    (z.B. Returning 2.0 New Alternative Balance und weitere kommende polnische & russische mods)

  14. Beiträge anzeigen #594 Zitieren
    Ritter Avatar von FaChDa
    Registriert seit
    Mar 2006
    Ort
    München
    Beiträge
    1.940
     
    FaChDa ist offline
    Zitat Zitat von Kirides Beitrag anzeigen
    Mit der neuen Version von Ninja, sollten Patches nun noch viel kompatibler sein als zuvor.

    Kann ich nur bestätigen. Gerade getestet mit ItemMap, ItemLocator und OrdererdLogs und alles lief wunderbar mit Returning NB.

  15. Beiträge anzeigen #595 Zitieren
    Alter Medizinmann Avatar von Tentarr
    Registriert seit
    May 2016
    Beiträge
    17.604
     
    Tentarr ist offline
    Vielen Dank für die Arbeit
    Forumsuche ist blöd ? Dann benutz doch einfach die Threadinternesuche,einfach hier nachlesen:
    https://forum.worldofplayers.de/foru...1#post26090118

    Fragen zu Returning 2.0 oder alternativem Balacing?
    Fast alle Antworten gibt es entweder im Startpost oder als bereits gestellte Frage in diesem Thread

    https://forum.worldofplayers.de/forum/threads/1536606-RETURNING-v2-0-und-Alternatives-Balancing-Installation-Stand-Fragen-Antworten-28




  16. Beiträge anzeigen #596 Zitieren
    General Avatar von Roland54
    Registriert seit
    Aug 2018
    Ort
    In Sachsen- Anhalt
    Beiträge
    3.477
     
    Roland54 ist offline
    Irgendwie bin ich im Moment wohl zu blond, um Ninja von Github zu laden. Was ich auch anklicke, da ist kein Download dabei, und selbst bauen will ich es nicht. Wie geht das denn jetzt?

    Ich benutze übrigens den Firefox (aktuell).
    Meine Übersetzungen:
    Gilden/Guilds/Гильдии v.1.6: Gothic 2: Gilden 1.6 DE
    Die Destiny- Saga (1 bis 5): Gothic 2: Destiny 1 bis 5 Deutsche Version
    Klasztor - Das Kloster:
    Klasztor - Das Kloster
    G1 Erweiterte Edition Plus (Quentins Bande): G1 Erweiterte Edition (Quentins Bande)
    Und viele andere.

  17. Beiträge anzeigen #597 Zitieren
    Deus Avatar von Gothaholic
    Registriert seit
    May 2007
    Ort
    Hessen
    Beiträge
    18.215
     
    Gothaholic ist offline
    Zitat Zitat von Roland54 Beitrag anzeigen
    Irgendwie bin ich im Moment wohl zu blond, um Ninja von Github zu laden. Was ich auch anklicke, da ist kein Download dabei, und selbst bauen will ich es nicht. Wie geht das denn jetzt?

    Ich benutze übrigens den Firefox (aktuell).
    hm, hab's mir gerade mit Firefox herunter geladen, also am Browser liegt es nicht.
    der (Download)Link unter "Assets" funktioniert nicht bei dir?

  18. Beiträge anzeigen #598 Zitieren
    Knight
    Registriert seit
    Aug 2009
    Ort
    Hessen
    Beiträge
    1.487
     
    Cryp18Struct ist offline
    Funktioniert bei mir in firefox:
    [Bild: attachment.php?s=e5a273a9baf8097d7f5038e38bff1a79&attachmentid=50938&d=1631007778&thumb=1]
    (Rechtsklick und "Ziel speichern unter" oder wie auch immer das auf deutsch heißt)

  19. Beiträge anzeigen #599 Zitieren
    General Avatar von Roland54
    Registriert seit
    Aug 2018
    Ort
    In Sachsen- Anhalt
    Beiträge
    3.477
     
    Roland54 ist offline
    Funktioniert bei mir jetzt auch, danke an alle. Aber ich möchte (fast) behaupten, dass ich unter Assets den Download der .exe vorhin nicht hatte. Jetzt geht der Download jedenfalls direkt.
    Meine Übersetzungen:
    Gilden/Guilds/Гильдии v.1.6: Gothic 2: Gilden 1.6 DE
    Die Destiny- Saga (1 bis 5): Gothic 2: Destiny 1 bis 5 Deutsche Version
    Klasztor - Das Kloster:
    Klasztor - Das Kloster
    G1 Erweiterte Edition Plus (Quentins Bande): G1 Erweiterte Edition (Quentins Bande)
    Und viele andere.

  20. Beiträge anzeigen #600 Zitieren
    Ritter Avatar von DavidVanScouten
    Registriert seit
    Feb 2018
    Ort
    Göttingen
    Beiträge
    1.005
     
    DavidVanScouten ist offline
    Ich habs auch gepackt! - Danke!

Seite 30 von 34 « Erste ... 1923262728293031323334 Letzte »

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