Creating A Nightmist Database
#1
Posted 01 April 2005 - 10:58 PM
You'll need to be familiar with C# to turn it into a proper database program.
It is split into three applications.
The first application is the viewer program, which allows you to view files in the database.
The second application is the editor, which allows you to view, update, and remove items in the database.
The last application is actually a class library that contains the templates for each item, and code to load and save them to a file.
The only thing I added was the template for adding Weapons to the database. The editor only allows you to edit the weapon description, although the viewer displays all the information. To complete it you will need to add tabs for other types of item in the editor, and add the rest of the buttons and labels to allow editing of the other properties.
This is quite technical, and you will need to be familiar with C# or at least willing to learn it to be able to complete this application.
However, most of the difficult code is already present, and I will answer sensible questions if you get stuck.
If you find any bugs then let me know.
The viewer and editor programs load Database.nmd from the same folder as the executable.
You will need Visual Studio .NET or similar to edit the application. You will need the .NET Framework to run this application (found on windowsupdate or the microsoft site).
Download the full source code and compiled projects here.
If you alter the class library then your database will no longer load, because it will be a version mismatch. Therefore you should complete the application design before you use it.
#2
Posted 02 April 2005 - 06:51 AM
Nice work Simon. Thanks for taking the time.
Edited by Momba, 02 April 2005 - 06:51 AM.
#3
Posted 02 April 2005 - 09:40 AM
Main crits:
Crane
Europa
Don't kill the
#4
Posted 02 April 2005 - 02:14 PM
#5
Posted 02 April 2005 - 05:29 PM
I thought your helper was going to be made so that it helped you learn VB? does it matter if someone else is doing a similar project, althiough this is quite a bit different. if this is the case then why did you start one if Jurians was out tehre?this mean i should stop working on my helper?
#7
Posted 02 April 2005 - 09:31 PM
#9
Posted 02 April 2005 - 10:14 PM
#10
Posted 02 April 2005 - 10:45 PM
go figure... lolNm was coded in VB lol
i suspect nightmist 2 isn't in VB then. I might start to learn C# actually, but i have to go through the trouble of downloading all the crap for it, then actually getting the motivation to learn it Taken me so long to be arsed to start learning VB lol. Plus, the game engines i use (ORE, Mirage Source) are in VB, and i use them alot.
#11
Posted 03 April 2005 - 03:25 AM
#13
Posted 03 April 2005 - 12:29 PM
#14
Posted 03 April 2005 - 01:47 PM
#15
Posted 03 April 2005 - 07:25 PM
Main crits:
Crane
Europa
Don't kill the
#16
Posted 03 April 2005 - 07:39 PM
#17
Posted 05 April 2005 - 01:06 AM
however the nm server is only using a few % of the cpus, so not really an issue (and as mentioned in the off-topic thread on vb, vb compiles to c code anyway).
the main thing vb lacks is decent support for multi-threading, that would come in handy for the hourly database save so it doesn't pause the game for a few seconds.
#19
Posted 05 April 2005 - 06:36 AM
good job i don't use objects then
#21
Posted 05 April 2005 - 02:03 PM
as long as it works i guess. just remember to ALWAYS COMMENT YOUR CODE. messy code is one thing that annoys me alot.
#22
Posted 05 April 2005 - 02:33 PM
JLH vs Pandilex
hehehe
#23
Posted 05 April 2005 - 06:46 PM
#24
Posted 05 April 2005 - 08:53 PM
well, when i wrote it, i wasn't thinking in the "object-oriented" way, and I will admit, i know nothing about how it works, and i know nothing about c# (and don't have the time to look into it or vb.net).Ah but you do, the monsters being reference numbers to an array is a very clumsy inefficient way of implementing a object-oriented approach =)good point about the database
good job i don't use objects then
so if you say it's better, i'll believe you since you know both languages and so can compare them whereas i can't
#25
Posted 05 April 2005 - 11:41 PM
#26
Posted 06 April 2005 - 03:20 AM
deimos the noob said no
#27
Posted 06 April 2005 - 08:16 AM
#29
Posted 06 April 2005 - 01:19 PM
#30
Posted 06 April 2005 - 02:09 PM
Since I am very proficient in C# I will take a look at the code and see if I can finish it.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users