![]() |
Mapreport Upgrade - 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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Mapreport Upgrade (/showthread.php?tid=1746) |
Mapreport Upgrade - Rian - 09-05-2008 This tutorial adds a form for your /mapreport command. This form allows you to view a list of your maps, warp to them, and edit them. Client Side Start by adding a new form, called frmMapReport. To this form, add the following: 3 command buttons: cmdGoTo, cmdEdit, cmdCancel 1 list box: lstMaps 1 text box: txtMap 1 scroll bar: scrlMapNum Now add this code to frmMapReport: Code: Private Sub Form_Load() Now add this to Sub HandleData: Code: ' :::::::::::::::::: Add this anywhere (I put it in modGameLogic along with the other editor inits): Code: Public Sub MapReportInit() Server Side In Sub HandleData, find the Map Report Packet, and paste this at the bottom, but before the exit sub: Code: Call SendDataTo(Index, "MAPREPORT" & SEP_CHAR & END_CHAR) And add this somewhere in modServerTCP: Code: Sub SendMapList(ByVal Index As Long) And lastley, right under this Map Report Packet, paste this packet: Code: ' ::::::::::::::::::::::::::::: Been a while since I added this to my game, so I'm not sure if I including everything that needs to be there. Let me know if it doesn't work, and I'll update the tutorial. Re: Mapreport Upgrade - Coke - 10-05-2008 I love you. Much. Re: Mapreport Upgrade - Ramsey - 11-05-2008 You forgot to include the Sub SendMapList Re: Mapreport Upgrade - Rian - 13-05-2008 Updated the tutorial with the missing sub Re: Mapreport Upgrade - Robin - 13-05-2008 Wow.. that's very useful. I just started re-mapping Winds Whisper so this'll be very useful. Thanks Ruggles Re: Mapreport Upgrade - Ramsey - 13-05-2008 Works perfectly. Thanks. Re: Mapreport Upgrade - Sh4d0ws - 13-07-2008 Little old I guess... but oh well. In one of your packet's it did not have "z" as a variable. It gave me an error on the line, "z = val(parse(1))". Not sure if this matters, but this is how I managed to easily fix it (assuming it works). I'm using the newest version of MS out right now. Code: ' :::::::::::::::::: |