Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Warhammer 40,000 Database
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Insectoid




PostPosted: Sun Jul 13, 2008 1:41 pm   Post subject: Warhammer 40,000 Database

Well, this is my first database. It was made because I thought it wold be fun and because I thought somebody out there would find it useful. It allows the user to store the profile of a 40k unit and to access it quickly through a search engine.

I uploaded 2 versions, one containing the source code and one...not containing the source code. People who were linked here from Advanced Tau Tactica, download the file 'Database Reader'. The other one has things most of you can't use/need. Compsci, download the other one if you want the code.

I may do a vehicle/weapon database later, if there is enough interest.

No need to worry about copyright stuff, I only included a few sample entries to show how it works. If Games Workshop has any issues with this, I'll take out the samples. All instructions are in the readme.

If any members of Advanced Tau Tactica have questions, post them in the thread on that site.



Database Reader - source.zip
 Description:
Turing-savvy people, download here!

Download
 Filename:  Database Reader - source.zip
 Filesize:  291.77 KB
 Downloaded:  548 Time(s)


Database Reader.zip
 Description:
ATT download here!

Download
 Filename:  Database Reader.zip
 Filesize:  288.93 KB
 Downloaded:  570 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Aziz




PostPosted: Sun Jul 13, 2008 3:40 pm   Post subject: RE:Warhammer 40,000 Database

You don't have any nids in there, though!

Also, you're search is case sensitive. I don't know if that's by design, but it should be case insensitive. Pretty good start though. Maybe add a listing function so you can see what's in the database (without opening the txt file)
Insectoid




PostPosted: Sun Jul 13, 2008 3:45 pm   Post subject: RE:Warhammer 40,000 Database

I could change that, but I'm lazy.

I don't have any nids, because I don't want to get into any copyright trouble. I play Tau, so have that codex, and thus, most of the samples are Tau.

listing? Displaying anything would require opening the txt file.
darkangel




PostPosted: Mon Jul 21, 2008 2:45 pm   Post subject: Re: Warhammer 40,000 Database

tisk tisk. You should always close your file when your done with it.

I got an error when i ran your compiled version and tried add a new entry it said to close the file before opening it again. Not sure if you fixed this problem in the source, but this means you can't add a new entry.

EDIT: BTW the error is on line 763
Insectoid




PostPosted: Sun Jul 27, 2008 8:07 pm   Post subject: RE:Warhammer 40,000 Database

Really? It works fine for me, I tried it like, 20 different ways and got no issues. I always closed the file.


Download the source and look at line 763, maybe you can figure it out, I haven't got time right now. maybe I forgot to put the new version into the non-source.

oh, and to download a picture, right-click on it and select 'Save image as'.

BTW, my birthday was yesterday! July 26! 16 years old! Huzzah! Don't worry, I won't make a birthday post.
SNIPERDUDE




PostPosted: Sun Jul 27, 2008 9:02 pm   Post subject: RE:Warhammer 40,000 Database

Because that wasn't, lol.

Jk, Happy B-Day anywho
Insectoid




PostPosted: Mon Jul 28, 2008 12:45 pm   Post subject: RE:Warhammer 40,000 Database

Funny, the source file works fine, but when I compile it, it gets the error...

Any idea what's going on?
SNIPERDUDE




PostPosted: Tue Jul 29, 2008 12:12 am   Post subject: RE:Warhammer 40,000 Database

Turing 4.1.1?
or the newest one, whatever it is...
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Thu Jul 31, 2008 12:11 pm   Post subject: RE:Warhammer 40,000 Database

nope, written in 4.1.1, compiled in 4.0.5. running source from 4.0.5 is fine, so I know I'm not using things from newer versions. Maybe it's a compiler defect?
SNIPERDUDE




PostPosted: Thu Jul 31, 2008 1:10 pm   Post subject: RE:Warhammer 40,000 Database

Not sure...
Try it on 4.1 or another version, see if
you get the same error.
Insectoid




PostPosted: Thu Jul 31, 2008 3:56 pm   Post subject: RE:Warhammer 40,000 Database

I'll have to download it. I had it at school, but I never got it for home. Say, how come you get stars under your offline/online status box thing?
SNIPERDUDE




PostPosted: Thu Jul 31, 2008 11:44 pm   Post subject: RE:Warhammer 40,000 Database

the year stars?
They mean I've been a member for 2 years now...

Anywho, the downloads are at the top of the page,
the button called "Download Turing". Simple enough.
Insectoid




PostPosted: Sat Aug 02, 2008 9:42 am   Post subject: RE:Warhammer 40,000 Database

Well, I compiled it in 4.1, and it still has the same glitch. Stupid.

Must be a compiler glitch, unless somebody can find it in my code, though that shouldn't happen.
Tyr_God_Of_War




PostPosted: Mon Nov 10, 2008 6:37 pm   Post subject: RE:Warhammer 40,000 Database

I got an error line 116: out of array subscript rang when I searched "Tau" twice...
Insectoid




PostPosted: Mon Nov 10, 2008 6:42 pm   Post subject: RE:Warhammer 40,000 Database

lol, this is pretty old, It didn't work the way I wanted, whatever. If you want to, download the source and try to figure it out. Likely I forgot to re-initialize some variables or something.

Edit: So, for some reason, instead of going back to the main screen, where things are reset, it goes to the search screen again, so the important variable (num_results) is not reset, and thus we get an out of range array subscript. I haven't bothered to solve the problem ,because I simply cannot read the code I wrote so long ago, and did not comment.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 15 Posts ]
Jump to:   


Style:  
Search: