![]() |
[FIXED] Big bug MS3.0.3 - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: [FIXED] Big bug MS3.0.3 (/showthread.php?tid=2476) |
[FIXED] Big bug MS3.0.3 - El_Dindonnier - 05-01-2009 When I change : (client and server) Code: Public Const MAX_NPCS = 255 Code: Public Const MAX_NPCS = 500 It's work, but in the client, when I add a npc in the map properties (after 255), I have a runtime error 6 out of memory. Quote:For I = 1 To MAX_MAP_NPCS I use a MS3.0.3 very modified, but i have the bug on a clean mirage source. Can I help me please ? Thanks you in advance. (sorry for my bad english) Re: Big bug MS3.0.3 - deathknight - 05-01-2009 Just wanted to put this out there, I just tried this with MS4 also (just messing around) and I changed max NPCS to 500 also, changed it so its dimmed as byte, and it popped up with RTE 6 on this line Code: .Npc(i) = cmbNpc(i).ListIndex Re: Big bug MS3.0.3 - Doomy - 05-01-2009 is npcs a byte cause like doesnt that mean 256 is highest number also i may not know what im talking about Re: Big bug MS3.0.3 - Matt - 05-01-2009 I looked at the topic starter's user name and saw "El_Dinosaur".. XD Re: Big bug MS3.0.3 - Rian - 05-01-2009 MAX_NPCS needs to be stored as an integer if you want the value to be more than 255. Re: Big bug MS3.0.3 - deathknight - 06-01-2009 Sorry, thats what I meant. I changed it so it ISN'T dimmed as a byte. I did change it to integer when I tested it. I think something else in the statement is being dimmed as a byte, I just can't tell where. Re: Big bug MS3.0.3 - Doomy - 06-01-2009 Rian Wrote:MAX_NPCS needs to be stored as an integer if you want the value to be more than 255.woot that means i was right and just search NPCS and see if you see anything you missed Re: Big bug MS3.0.3 - El_Dindonnier - 09-01-2009 How to fix this bug please ? ![]() (thanks you for your help) Re: Big bug MS3.0.3 - Matt - 11-01-2009 You have to define npcs as an integer instead of a byte.. Pay attention, that was already stated. -_- Re: Big bug MS3.0.3 - El_Dindonnier - 11-01-2009 In a blank mirage source MS3.0.3. SERVER I change : Code: Public Const MAX_NPCS = 255 Code: Public Const MAX_NPCS = 500 I change : Code: Type MapRec Code: Type MapRec CLIENT I change : Code: Public Const MAX_NPCS = 255 Code: Public Const MAX_NPCS = 500 I change : Code: Type MapRec Code: Type MapRec I launch the server. (it's OK) I create a account and a character. (acces 5) I login, I am in the game. /mapeditor and I clic property. I choice the 256 NPC, I clic OK. I save the map and : Runtime error 6 overflow : Quote: ' :::::::::::::::::::::: Why ? help me please. (sorry for my bad english) Re: Big bug MS3.0.3 - Matt - 11-01-2009 It would appear that you need to change the num variable to an integer in the mapnpc rec. Re: Big bug MS3.0.3 - El_Dindonnier - 12-01-2009 Matt Wrote:It would appear that you need to change the num variable to an integer in the mapnpc rec.It's work ! :mrgreen: Thanks you for your help :wink: |