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 131814 times)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#2
Administrator
Shining Sideburns
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 837
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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) ![Smiley](http://www.shiningsource.org/forum/Smileys/classic/smiley.gif)
![Smiley](http://www.shiningsource.org/forum/Smileys/classic/smiley.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#3
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
Actually, I have no copy of the code whatsoever since my harddisk crashed a year or so ago O_O.
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#4
Administrator
Shining Spammer
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,129
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#5
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#6
Administrator
Shining Sideburns
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 837
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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 ![Smiley](http://www.shiningsource.org/forum/Smileys/classic/smiley.gif)
![Smiley](http://www.shiningsource.org/forum/Smileys/classic/smiley.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#7
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#8
Administrator
Shining Sideburns
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 837
Logged![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#9
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
I think you should
. It's either that or rewriting it in Lisp if you ask me
.
![Cheesy](http://www.shiningsource.org/forum/Smileys/classic/cheesy.gif)
![Tongue](http://www.shiningsource.org/forum/Smileys/classic/tongue.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#10
Administrator
Shining Spammer
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,129
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#11
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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++;
}
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
if(sugar) {
sweetness++;
}
if(milk) {
creaminess++;
}
if(decaf) {
loser++;
}
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#12
![](http://www.shiningsource.org/forum/avatars/Old School/zylo.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/level1.gif)
Posts: 41
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
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
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
...programming on holidays
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#13
![](http://www.shiningsource.org/forum/avatars/Old School/zylo.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/level1.gif)
Posts: 41
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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...![Huh?](http://www.shiningsource.org/forum/Smileys/classic/huh.gif)
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...
![Huh?](http://www.shiningsource.org/forum/Smileys/classic/huh.gif)
...programming on holidays
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#14
![](http://www.shiningsource.org/forum/avatars/Old School/zylo.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/level1.gif)
Posts: 41
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
I must have been Bill Gates:
the code works, but you never understand why![Cool](http://www.shiningsource.org/forum/Smileys/classic/cool.gif)
the code works, but you never understand why
![Cool](http://www.shiningsource.org/forum/Smileys/classic/cool.gif)
...programming on holidays
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
![Old Post](https://www.shiningsource.org/forum/Themes/theShiningSource/images/topic/post_old.gif)
#15
Administrator
Shining Spammer
![](http://www.shiningsource.org/forum/avatars/Reserved/devlyn.gif)
![*](https://www.shiningsource.org/forum/Themes/theShiningSource/images/levels/l33t.gif)
Posts: 1,208
Logged![](https://www.shiningsource.org/forum/Themes/theShiningSource/images/post/xx.gif)
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.![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)
![Tongue](http://www.shiningsource.org/forum/Smileys/classic/tongue.gif)
Although, disjoint else-if statements are actually faster in some programming languages.
![Wink](http://www.shiningsource.org/forum/Smileys/classic/wink.gif)