Hi everyone,
I'm new here and I am searching for the Java Sourceode of B.A.B.S. 2.25 or 2.5.
I like Java, so I would be happy to read the sources
Thank you for help
« previous next » |
searching java code (Read 134079 times)
January 01, 2010, 07:14:52 pm
#2
Administrator
Shining Sideburns
Posts: 837
Logged
Re: searching java code
I have the source hanging around somewhere, so I'll take a look for it this weekend and upload it sometime next week (unless Elv or Dev beat me to it)
January 01, 2010, 11:30:58 pm
#3
Administrator
Shining Spammer
Posts: 1,208
Logged
Re: searching java code
Actually, I have no copy of the code whatsoever since my harddisk crashed a year or so ago O_O.
January 04, 2010, 06:38:55 am
#4
Administrator
Shining Spammer
Posts: 1,129
Logged
Re: searching java code
~Elvenfyre
I emailed you a copy a few months ago dev.. or maybe your email address has changed, pm me a new one so I can send it.
~Elvenfyre
January 05, 2010, 07:46:44 am
#5
Administrator
Shining Spammer
Posts: 1,208
Logged
January 05, 2010, 03:33:39 pm
#6
Administrator
Shining Sideburns
Posts: 837
Logged
Re: searching java code
OK, the source code is now available here: BABS 2.5 source code. If there's any mistakes in the readme or files missing / corrupt, let me know and I'll fix them ASAP
January 05, 2010, 07:07:28 pm
#7
Administrator
Shining Spammer
Posts: 1,208
Logged
January 05, 2010, 08:10:37 pm
#8
Administrator
Shining Sideburns
Posts: 837
Logged
January 05, 2010, 10:28:43 pm
#9
Administrator
Shining Spammer
Posts: 1,208
Logged
Re: searching java code
I think you should . It's either that or rewriting it in Lisp if you ask me .
January 06, 2010, 07:49:31 pm
#10
Administrator
Shining Spammer
Posts: 1,129
Logged
Re: searching java code
~Elvenfyre
I thought we were using Lisp all along?!?!!??
Oh wait no no, that's just my terrible code writing style.
Oh wait no no, that's just my terrible code writing style.
~Elvenfyre
January 09, 2010, 12:08:43 pm
#11
Administrator
Shining Spammer
Posts: 1,208
Logged
Re: searching java code
Well, if you consider that we programmed in a language originally intended for coffee machines I think our code doesn't look half bad actually .
if(sugar) {
sweetness++;
}
if(milk) {
creaminess++;
}
if(decaf) {
loser++;
}
if(sugar) {
sweetness++;
}
if(milk) {
creaminess++;
}
if(decaf) {
loser++;
}
July 23, 2010, 06:26:02 pm
#12
Blahian
Posts: 41
Logged
Re: searching java code
...programming on holidays
I am reading the sources,
but in my opinion this is just a copy and paste thing of C/C++ there are some things missing/ wrong like names, comments code formatting etc.
I'll try my best but I give no guarantee that I'm finished soon
but in my opinion this is just a copy and paste thing of C/C++ there are some things missing/ wrong like names, comments code formatting etc.
I'll try my best but I give no guarantee that I'm finished soon
...programming on holidays
July 24, 2010, 08:19:33 am
#13
Blahian
Posts: 41
Logged
Re: searching java code
...programming on holidays
who (the hell) wrote this code?
these elseif-Cases are disjoint, so you don't ever need an elseif.
The same problem exists at th battlemodeOptions...
Quote
else if(key == KeyEvent.VK_DOWN) {
if(battleModeOption < 4) battleModeOption = 3;
else if(battleModeOption > 9 && battleModeOption < 13) {
if(Buffer.Player().spell[battleModeOption-9] != null) {
battleModeOption++;
spellLevelChoice = Buffer.Player().spell[battleModeOption-10].level;
}
}
}
else if(key == KeyEvent.VK_LEFT) {
if(battleModeOption < 4) battleModeOption = 1;
else if(battleModeOption > 9 && battleModeOption < 13) {
if(spellLevelChoice > 1) {
spellLevelChoice--;
//System.out.println("--:" +spell_lv_choice);
}
}
}
if(battleModeOption < 4) battleModeOption = 3;
else if(battleModeOption > 9 && battleModeOption < 13) {
if(Buffer.Player().spell[battleModeOption-9] != null) {
battleModeOption++;
spellLevelChoice = Buffer.Player().spell[battleModeOption-10].level;
}
}
}
else if(key == KeyEvent.VK_LEFT) {
if(battleModeOption < 4) battleModeOption = 1;
else if(battleModeOption > 9 && battleModeOption < 13) {
if(spellLevelChoice > 1) {
spellLevelChoice--;
//System.out.println("--:" +spell_lv_choice);
}
}
}
these elseif-Cases are disjoint, so you don't ever need an elseif.
The same problem exists at th battlemodeOptions...
...programming on holidays
July 24, 2010, 08:51:45 am
#14
Blahian
Posts: 41
Logged
Re: searching java code
...programming on holidays
I must have been Bill Gates:
the code works, but you never understand why
the code works, but you never understand why
...programming on holidays
July 24, 2010, 10:16:18 am
#15
Administrator
Shining Spammer
Posts: 1,208
Logged
Re: searching java code
I wrote that code.... loooong time ago, back in the days when I was still a very crappy programmer .
Although, disjoint else-if statements are actually faster in some programming languages.
Although, disjoint else-if statements are actually faster in some programming languages.