Golf Posted February 8, 2015 Author Share Posted February 8, 2015 I've finally fixed a pet summon problem.When you are on the edge of the map and if you summon your pet server will just crash!I was so stupid to fix it so I thinked 2 hours until logical explanation came into my head :PIts very easy.We will just need to edit **SERVER SIDE**:In modGameLogic,in sub NpcTileIsOpen find this:```If MapNpc(mapnum).NPC(LoopI).IsPet = YES Then If Map(mapnum).Tile(x, y).Type = TILE_TYPE_WALKABLE Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_NPCAVOID Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_HEAL Then NpcTileIsOpen = True Exit Function End If End If``` Now replace it with this:``` If MapNpc(mapnum).NPC(LoopI).IsPet = YES Then If x >= Map(mapnum).MaxX Or y >= Map(mapnum).MaxY Or x <= 0 Or y <= 0 Then NpcTileIsOpen = False Exit Function Else If Map(mapnum).Tile(x, y).Type = TILE_TYPE_WALKABLE Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_NPCAVOID Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_HEAL Then NpcTileIsOpen = True Exit Function End If End If End If```Now when you replaced it server wont crash anymore :) If you are on edge of the map you cant summon pet anymore and server wont crash ! Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 8, 2015 Share Posted February 8, 2015 Hey, you're right, the pets will crash the server, thanks for the fix! :D Link to comment Share on other sites More sharing options...
SkywardRiver Posted February 8, 2015 Share Posted February 8, 2015 I had already fixed this in the SEB engine xDSorry you spent two hours on it mate D: If I had known you were trying to fix this I woulda told you D: Link to comment Share on other sites More sharing options...
Golf Posted February 8, 2015 Author Share Posted February 8, 2015 NP :) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 8, 2015 Share Posted February 8, 2015 > I had already fixed this in the SEB engine xD> > > > Sorry you spent two hours on it mate D: If I had known you were trying to fix this I woulda told you D:Really? I'd have loved to have seen this fixed in the code and actually not crashing when you spawn your pet where you shouldn't be ;) aka, no you didn't XD Link to comment Share on other sites More sharing options...
SkywardRiver Posted February 8, 2015 Share Posted February 8, 2015 I don't think you have the updated version xD I might have patched it after I uploaded the SEB Engine :0 Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 8, 2015 Share Posted February 8, 2015 Maybe lol, but I have my updated copy Link to comment Share on other sites More sharing options...
J. Black Posted February 9, 2015 Share Posted February 9, 2015 I don't have these lines on my source. Are they from the Lightning's Pet System? Link to comment Share on other sites More sharing options...
Officer Johnson Posted February 9, 2015 Share Posted February 9, 2015 > I don't have these lines on my source. Are they from the Lightning's Pet System?yes they are Link to comment Share on other sites More sharing options...
J. Black Posted February 9, 2015 Share Posted February 9, 2015 > yes they areAre you sure? [http://www.eclipseorigins.com/community/index.php?/topic/116108-eo-lightnings-pet-system-completely-bug-free/](http://www.eclipseorigins.com/community/index.php?/topic/116108-eo-lightnings-pet-system-completely-bug-free/) This? Link to comment Share on other sites More sharing options...
Officer Johnson Posted February 9, 2015 Share Posted February 9, 2015 > Are you sure? [http://www.eclipseorigins.com/community/index.php?/topic/116108-eo-lightnings-pet-system-completely-bug-free/](http://www.eclipseorigins.com/community/index.php?/topic/116108-eo-lightnings-pet-system-completely-bug-free/) This?yes im sure Link to comment Share on other sites More sharing options...
J. Black Posted February 9, 2015 Share Posted February 9, 2015 > yes im sureSo I must be retarded 'cause I can't find. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 9, 2015 Share Posted February 9, 2015 > So I must be retarded 'cause I can't find.Try Ctrl+F then searchIf Map(mapnum).Tile(x, y).Type = TILE_TYPE_WALKABLE Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_NPCAVOID Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_HEAL Then Link to comment Share on other sites More sharing options...
J. Black Posted February 9, 2015 Share Posted February 9, 2015 > Try Ctrl+F then search> > If Map(mapnum).Tile(x, y).Type = TILE_TYPE_WALKABLE Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_NPCAVOID Or Map(mapnum).Tile(x, y).Type = TILE_TYPE_HEAL Then Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 9, 2015 Share Posted February 9, 2015 Ok, I think the code he edited was actually in the EO 2.0 source and was an outside fix, it wasn't in Lightning's Pet System, merely a forgotten piece. So you have to use the pet system then you edit the source code to add this :) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now