A little update before I get off for the night.
I made some subs so that there’s a lot less repeated code. I now have finding all files and loading working properly.Call LoadFileList(Editor_Item, "\data\items\") Call LoadItem("item3", "zdefault")
The first call statement adds all files in the \data\items\ folder to the array of file names and categories (categories will be added for better sorting and ordering of files. Eg. a tree category in resources might look like \data\items\books\. This makes organizing everything a lot easier [even easier since files can have any name, now. Eg. \data\items\weapons\two handed\scythe.dat])
Keep in mind that none of the code I’ve done is set in stone, I might change things later so it uses less memory, is faster, etc.
For those that are curious about my current setup:
At the server startup, I’m looping through all files and adding the file name and sub folder path (what I call a category) into an list. This list is currently used when loading a file to make sure I load the correct file (you can have 2 of the same named files in different categories).
I also plan on using this list when sending the list of names and categories to the client (this way I don’t have to read through all the files each time I send the list. Just once at startup and tweaking it every now and again when files are added or removed). (If you care, I’m using a collection, not an actual list).
Well, you don’t throw magic, so it would need some adjusting
This thread is to tell you what information is needed and helpful when creating a bug report. Saying an error number and nothing else makes finding and fixing bugs very difficult, so I’m making a list of needed and helpful information for you to include to help me help you and fix bugs.
Remember, finding bugs is usually quite difficult: the more information I have, the better chance I have to find the bug.
REQUIRED - This information is needed to help me find a bug, I won’t be able to help much without it:Did you get an error message? If so, what was the message? (Pictures help) Was the error on the client or server? What were you doing leading up to the bug? Can you reproduce the error? (Do you keep getting the bug?) Have you made any source edits? If so, to what?
OPTIONAL - This information is optional to include but can help find the bug:Video of the error The \server\data folder (send it via PM if you don’t want it public)
Hi, I’m having a bug when I talk to a quest NPC.Did you get an error message? Yes, error 9 subscript out of range Was the error on the client or server? Client What were you doing leading up to the bug? I walked over to the quest NPC and pressed Ctrl to talk to it Can you reproduce the error? Yes, it happens every time Have you made any source edits? Yes, to the number of map layers
This report helps me know that there’s most likely an issue with the GUI code for quest NPCs. I know where I should start looking so I can fix the error in 5-10 minutes. Just saying “NPCs are buggy” doesn’t help me find the bug.
Posts 291 • Views 73449