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 390861 times)

#2
Administrator
Shining Sideburns

Posts: 837
Logged
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) 


#3
Administrator
Shining Spammer


Posts: 1,208
Logged
Actually, I have no copy of the code whatsoever since my harddisk crashed a year or so ago O_O.

#4
Administrator
Shining Spammer

Posts: 1,129
Logged
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

#5
Administrator
Shining Spammer


Posts: 1,208
Logged
#6
Administrator
Shining Sideburns

Posts: 837
Logged
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 


#7
Administrator
Shining Spammer


Posts: 1,208
Logged
#8
Administrator
Shining Sideburns

Posts: 837
Logged
#9
Administrator
Shining Spammer


Posts: 1,208
Logged
I think you should
. It's either that or rewriting it in Lisp if you ask me
.



#10
Administrator
Shining Spammer

Posts: 1,129
Logged
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

#11
Administrator
Shining Spammer


Posts: 1,208
Logged
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++;
}

#12


Posts: 41
Logged
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


#13


Posts: 41
Logged
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


#14


Posts: 41
Logged
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


#15
Administrator
Shining Spammer


Posts: 1,208
Logged
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.
