Domino_ Posted June 25, 2012 Author Share Posted June 25, 2012 max npcs I have 255 (server/client side)afther got this error i deleted all maps,npcs.. and error appeared agn..Something wrong with map update, npcs or map/npc editor but with who?![](http://www.freemmorpgmaker.com/files/imagehost/pics/7cf92c9c17015967702895a9cb0044d8.png)I hope that someone can give suggestions.. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 25, 2012 Share Posted June 25, 2012 Try deleting your maps/npcs again. If that fails, can we view your MapNpcRec?Generally this shouldn't happen because Num is the first element in the MapNpcRec, so it's rare that a source edit messes up that… Link to comment Share on other sites More sharing options...
Alatar Posted June 26, 2012 Share Posted June 26, 2012 Hmm that number (100,663,296) results higher than bytes and integer max values but smaller to the long max parameter (2,147,483,647). Have you edited your mapnpc() type? Link to comment Share on other sites More sharing options...
Stein Posted June 26, 2012 Share Posted June 26, 2012 Sounds like you messed with the recs, and its pushing a string into that value. Link to comment Share on other sites More sharing options...
Domino_ Posted June 26, 2012 Author Share Posted June 26, 2012 @ SoulI deleted maps and npc's also this is getting when I login, create map then go client side and delete that map from maps folder, when map is loading ( sending from server) then I get this error.>! Private Type MapNpcRec Num As Long Target As Long TargetType As Byte Threat(1 To MAX_THREAT_LIST) As ThreatRec Vital(1 To Vitals.Vital_Count - 1) As Long x As Byte y As Byte Dir As Byte ' For server use only SpawnWait As Long AttackTimer As Long StunDuration As Long StunTimer As Long ' regen stopRegen As Boolean stopRegenTimer As Long ' dot/hot DoT(1 To MAX_DOTS) As DoTRec HoT(1 To MAX_DOTS) As DoTRec ' Npc spells SpellTimer(1 To MAX_NPC_SPELLS) As Long Heals As Integer c_lastDir As Byte c_inChatWith As LongEnd Type >! Private Type MapNpcRec num As Long target As Long targetType As Byte Vital(1 To Vitals.Vital_Count - 1) As Long Map As Long x As Byte Y As Byte Dir As Byte ' Client use only XOffset As Long YOffset As Long Moving As Byte Attacking As Byte AttackTimer As Long Step As Byte c_lastDir As Byte c_inChatWith As LongEnd Type Found client side error.>! I copyed Sprite num , NPC and MapNPC![](http://www.freemmorpgmaker.com/files/imagehost/pics/95e7af2b54b7217e2c6232026d5c6c22.PNG) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted June 26, 2012 Share Posted June 26, 2012 @Stein:> Sounds like you messed with the recs, and its pushing a string into that value.Which is odd, because the MapDataRec is in an array separate from all other recs. MapDataRec includes MapNpcRec. In addition, it looks like his MapNpcRec hasn't changed the location of the Num element, which is one of the problems. The MapNpcRec is read manually from LoadMaps, but then Domino_ says he deleted both the maps and NPCs. Link to comment Share on other sites More sharing options...
Domino_ Posted June 26, 2012 Author Share Posted June 26, 2012 Just tryed all different ways to login and open client and server…All works fine with ready *.exe server and client but when I run server though vb6 he shows me that error what I got in 1st post...p.s.I think I found problem... dont know how its going with npc but server side I took a look on everything what loads and saves maps and found...Hehe dunno how I made this mistake by pasting 2 times one and the same... ^.^>! Sub SaveMap(ByVal mapNum As Long) Dim filename As String Dim F As Long Dim x As Long Dim y As Long filename = App.Path & "\data\maps\map" & mapNum & ".dat" F = FreeFile Open filename For Binary As #F Put #F, , Map(mapNum).Name Put #F, , Map(mapNum).Music Put #F, , Map(mapNum).Revision Put #F, , Map(mapNum).Moral Put #F, , Map(mapNum).Up Put #F, , Map(mapNum).Down Put #F, , Map(mapNum).Left Put #F, , Map(mapNum).Right Put #F, , Map(mapNum).BootMap Put #F, , Map(mapNum).BootX Put #F, , Map(mapNum).BootY Put #F, , Map(mapNum).MaxX Put #F, , Map(mapNum).MaxY>! For x = 0 To Map(mapNum).MaxX For y = 0 To Map(mapNum).MaxY Put #F, , Map(mapNum).Tile(x, y)** Put #F, , Map(mapNum).Tile(x, y)** Next Next>! For x = 1 To MAX_MAP_NPCS Put #F, , Map(mapNum).NPC(x) Next Close #F DoEventsEnd Sub Could this affect map npcs? Because as I see for now there is no error.. ^^ Link to comment Share on other sites More sharing options...
Stein Posted June 26, 2012 Share Posted June 26, 2012 It can, because it stores a lot more additional data there, and it loads a specific length, then goes on to the next and does the same. So your NPCs were loaded from that double value.Guess I was wrong about the Rec stuff, but that's where I usually screw up when I forget stuff :P Link to comment Share on other sites More sharing options...
Domino_ Posted June 26, 2012 Author Share Posted June 26, 2012 hehe, added old backup maps , converted them and now I get npcnum 256 xDThis might be smtn wrong in converter or I g2 make maps from new?![](http://www.freemmorpgmaker.com/files/imagehost/pics/6f4662690bb3ef5098a5f630b64c39cc.PNG) Link to comment Share on other sites More sharing options...
Stein Posted June 26, 2012 Share Posted June 26, 2012 Keep them as a backup, and see if new maps fix the issue. If not, see what else might cause it to mess up. Link to comment Share on other sites More sharing options...
Domino_ Posted June 26, 2012 Author Share Posted June 26, 2012 Looks like everything works fine. Old maps and/or npcs was bugged from server mistake. ^^ 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