[ Login | Register ]

The Shining Source

« previous next »
Pages: [1] 2 3 ... 6 Print
searching java code   (Read 124948 times)
Old Post December 28, 2009, 08:40:37 am
#1
Blahian *

Posts: 2

Logged
searching java code
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


Old Post January 01, 2010, 07:14:52 pm
#2
Ty
Administrator
Shining Sideburns *

Posts: 836

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) Smiley


Old Post 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.

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Old Post January 04, 2010, 06:38:55 am
#4
Administrator Shining Spammer *

Posts: 1,129

Logged
Re: searching java code
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 January 05, 2010, 07:46:44 am
#5
Administrator
Shining Spammer *

Posts: 1,208

Logged
Re: searching java code
lol! Actually I found it in my mailbox now! Must be getting Alzheimer Tongue.

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Old Post January 05, 2010, 03:33:39 pm
#6
Ty
Administrator
Shining Sideburns *

Posts: 836

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 Smiley


Old Post January 05, 2010, 07:07:28 pm
#7
Administrator
Shining Spammer *

Posts: 1,208

Logged
Re: searching java code
Ah, this is great news for Shining Fangame developers! Again Tongue.

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Old Post January 05, 2010, 08:10:37 pm
#8
Ty
Administrator
Shining Sideburns *

Posts: 836

Logged
Re: searching java code
Just wait until the Shining Online source code is released:P


Old Post January 05, 2010, 10:28:43 pm
#9
Administrator
Shining Spammer *

Posts: 1,208

Logged
Re: searching java code
I think you should Cheesy. It's either that or rewriting it in Lisp if you ask me Tongue.

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Old Post January 06, 2010, 07:49:31 pm
#10
Administrator Shining Spammer *

Posts: 1,129

Logged
Re: searching java code
I thought we were using Lisp all along?!?!!?? 
Oh wait no no, that's just my terrible code writing style.


~Elvenfyre


Old Post 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 Wink.

if(sugar) {
  sweetness++;
}
if(milk) {
  creaminess++;
}
if(decaf) {
  loser++;
}

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Old Post July 23, 2010, 06:26:02 pm
#12
Blahian *

Posts: 41

Logged
Re: searching java code
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

...programming on holidays Wink


Old Post July 24, 2010, 08:19:33 am
#13
Blahian *

Posts: 41

Logged
Re: searching java code
who (the hell) wrote this code?

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);
           }
        }
      }

these elseif-Cases are disjoint, so you don't ever need an elseif.
The same problem exists at th battlemodeOptions...  Huh?

...programming on holidays Wink


Old Post July 24, 2010, 08:51:45 am
#14
Blahian *

Posts: 41

Logged
Re: searching java code
I must have been Bill Gates:

the code works, but you never understand why  Cool

...programming on holidays Wink


Old Post 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 Tongue.

Although, disjoint else-if statements are actually faster in some programming languages. Wink

Devlyn

Great news for Shining fangame developers! Wink

Correcting your non-working <img> tags since 1982 Wink


Pages: [1] 2 3 ... 6 Print 
« previous next »
Jump to:  

Powered by SMF 1.1.21 | SMF © 2013, Simple Machines