| Mirage Source http://miragesource.net/forums/ |
|
| Loading Editor http://miragesource.net/forums/viewtopic.php?f=201&t=4635 |
Page 1 of 1 |
| Author: | Mattyw [ Sun Oct 26, 2008 4:17 pm ] |
| Post subject: | Loading Editor |
Basically, before you edit an Item or NPC or so, there's an Index that lists all of them. But for some reason, on my 2 new Editors, the Names only show on the Index afetr I click Save when clicking on one of the Numbers. Shouldn't this populate the list with the Names?: Code: Case "crafteditor" InCraftEditor = True frmIndex.Show frmIndex.lstIndex.Clear ' Add the names For i = 1 To MAX_CRAFTS frmIndex.lstIndex.AddItem i & ": " & Trim$(Craft(i).Name) Next i frmIndex.lstIndex.ListIndex = 0 Exit Sub Help? :S |
|
| Author: | Kraft [ Sun Oct 26, 2008 10:07 pm ] |
| Post subject: | Re: Loading Editor |
Try putting: Code: frmIndex.Show After all.
|
|
| Author: | Mattyw [ Sun Oct 26, 2008 10:52 pm ] |
| Post subject: | Re: Loading Editor |
None of the other things have that after. & it didn't work. :S |
|
| Author: | Dragoons Master [ Sun Oct 26, 2008 11:11 pm ] |
| Post subject: | Re: Loading Editor |
Try removing every On Error Resume Next of the code. Then you'll see the real errors |
|
| Author: | Mattyw [ Sun Oct 26, 2008 11:23 pm ] |
| Post subject: | Re: Loading Editor |
Dragoons Master wrote: Try removing every On Error Resume Next of the code. Then you'll see the real errors There are only "On Error Resume Next"'s on stuff to do with Chatbox, so it won't affect it. :S |
|
| Author: | Ambientiger [ Mon Oct 27, 2008 2:42 am ] |
| Post subject: | Re: Loading Editor |
I find it handy to add a zero list item before trying to populate the rest of it, try something like Code: frmIndex.lstIndex.AddItem "None", 0 also helps when referencing the ListIndex, saves messing about with +1 and all that. |
|
| Author: | Rian [ Mon Oct 27, 2008 6:02 am ] |
| Post subject: | Re: Loading Editor |
JoinGame needs something like: Code: Call SendUpDateNewThing(Index) and then the sub would be like Code: Sub SendUpDateNewThing(ByVal Index As Long) Dim Packet As String Packet = "UPDATENEWTHING" & SEP_CHAR For i = 1 to MAX_NEWTHING Packet = Packet & NewThing(i).Name & SEP_CHAR Next i Packet = Packet & END_CHAR End Sub And you'll need a packet client side. Reverse engineer it from the sub I gave you |
|
| Author: | Mattyw [ Mon Oct 27, 2008 2:15 pm ] |
| Post subject: | Re: Loading Editor |
I missed such a simple thing. Quote: Call SendVocs(Index) Call SendCrafts(Index) Had to make them Subs. It now works, they display! Thanks Sonire. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|