Go Back   Smogon Community > Site & Projects > Shoddy Battle
Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
Old Jun 14th, 2009, 6:35:27 PM   #1
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default Guide to building the Shoddy Battle server from source

A guide to building the Shoddy Battle server from source is now available here:

Guide to building a Shoddy Battle server

If you are looking to run a server with maximum flexibility and the latest updates, building from source is your best option. The guide also touches on port forwarding for people who are having trouble having others join their server.

If anything is still unclear or you have further questions about building from the sources, you can ask in this thread.
bearzly is offline   Reply With Quote
Old Jun 14th, 2009, 10:06:39 PM   #2
Sir Aaron Mist
 
Join Date: Jun 2009
Posts: 14
Default

Quote:
C:Program FilesJavajdk1.x.x_xxbinjava.exe. Once you have found this file, drag it to your command line and then enter the rest of the command.
I have jdk1.6.0_14

Is that just this file?:



Or is it another file?
Sir Aaron Mist is offline   Reply With Quote
Old Jun 14th, 2009, 10:08:50 PM   #3
Colin**
Administrator
is a Programmeris a Pokémon Researcheris a member of the Smogon Site Staffis a Shoddy Battle Administratoris a Smogon IRC SOp
 
Join Date: Jul 2007
Location: Edmonton, Alberta, Canada
Posts: 722
Default

The 'x' means it could be any number; it's called a variable. So yes you are staring at the right file.
Colin is offline   Reply With Quote
Old Jun 14th, 2009, 10:47:15 PM   #4
Sir Aaron Mist
 
Join Date: Jun 2009
Posts: 14
Default

Alright, but here's what happens when I use that file:


(In order to keep my user and pass a secret, I used Smogon as user and Error as password. I will not that this is what happened exactly when I used the acc/pass I actually wanted to use.)

Last edited by Sir Aaron Mist; Jun 14th, 2009 at 10:48:42 PM. Reason: Typo
Sir Aaron Mist is offline   Reply With Quote
Old Jun 14th, 2009, 11:04:35 PM   #5
Colin**
Administrator
is a Programmeris a Pokémon Researcheris a member of the Smogon Site Staffis a Shoddy Battle Administratoris a Smogon IRC SOp
 
Join Date: Jul 2007
Location: Edmonton, Alberta, Canada
Posts: 722
Default

You need to change into the directory where you have your Shoddy Battle checkout, as the guide says. Please read the guide before asking questions.
Colin is offline   Reply With Quote
Old Jun 15th, 2009, 12:23:05 AM   #6
Sir Aaron Mist
 
Join Date: Jun 2009
Posts: 14
Default

Quote:
Originally Posted by Fat ColinJF View Post
You need to change into the directory where you have your Shoddy Battle checkout, as the guide says. Please read the guide before asking questions.
(Why does it say "Fat" ColinJF? I can't delete it)


WTF? I swear I changed it to that. And no joke, I've read the guide like 20 times! But I'll check to see if that was the problem.

I see you guys have no patience for stupidity.

EDIT: This is what I got after re-routing it:
Quote:
C:\Documents and Settings\Jared\My Documents\NetBeansProjects\ShoddyBattle>"C:\Progra m Files\Java\jdk1.6.0_14\bin\java.exe" java -cp dist/ShoddyBattle.jar shoddybattle.AccountEditor Admin smogon 2
Exception in thread "main" java.lang.NoClassDefFoundError: java
Caused by: java.lang.ClassNotFoundException: java
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
Could not find the main class: java. Program will exit.

Last edited by Sir Aaron Mist; Jun 15th, 2009 at 12:34:52 AM.
Sir Aaron Mist is offline   Reply With Quote
Old Jun 15th, 2009, 1:23:11 AM   #7
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

The path to the java program replaces the word java in the command.

What you want is
Code:
"C:\Program Files\Java\jdk1.6.0_14\bin\java.exe" -cp dist/ShoddyBattle.jar shoddybattle.AccountEditor Admin smogon 2
bearzly is offline   Reply With Quote
Old Jun 17th, 2009, 12:39:16 AM   #8
Erodent
I HAVE ANGST!
Pre-Contributor
 
Erodent's Avatar
 
Join Date: Aug 2008
Location: Bowser's Lovely Lift!
Posts: 1,891
Default

Okay, I have a problem. I've managed to forward both TCP and UDP traffic on my port (22222). People can get on my server, but they can only get on when my computer is functional. Why?
__________________
Busy with school lately...
Shoddy Account(s)............: Ping Pong Player, Up
Guides / Projects..............: EVing Guide (On-Site)* | DPP EV Hotspots Project* | Trap Guide
Full Analyses + Updates....: Diglett | Electivire* | Shedinja | Shuckle | Slaking* | Rotom-W* | Medicham | Gyarados
Other C&C Material...........: BP Bibarel | SpD Skarmory | DS Metagross* | Concise Electivire
Other Material..................: Assist Shuffle Strategy
Work in Progress..............: Trap Guide, Gyarados Revamp
Don't hesitate to PM me about C+C stuff - I like proofreading things!
Erodent is offline   Reply With Quote
Old Jun 17th, 2009, 2:07:46 AM   #9
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

You need to have your computer on and awake for people to connect. It's pretty hard for people to connect to your server on your computer if your computer is turned off. The server is running on your computer, not by some magical means
bearzly is offline   Reply With Quote
Old Jun 17th, 2009, 2:09:08 AM   #10
Erodent
I HAVE ANGST!
Pre-Contributor
 
Erodent's Avatar
 
Join Date: Aug 2008
Location: Bowser's Lovely Lift!
Posts: 1,891
Default

I see. Is there a way that can allow the server to run by others' computer as well?
__________________
Busy with school lately...
Shoddy Account(s)............: Ping Pong Player, Up
Guides / Projects..............: EVing Guide (On-Site)* | DPP EV Hotspots Project* | Trap Guide
Full Analyses + Updates....: Diglett | Electivire* | Shedinja | Shuckle | Slaking* | Rotom-W* | Medicham | Gyarados
Other C&C Material...........: BP Bibarel | SpD Skarmory | DS Metagross* | Concise Electivire
Other Material..................: Assist Shuffle Strategy
Work in Progress..............: Trap Guide, Gyarados Revamp
Don't hesitate to PM me about C+C stuff - I like proofreading things!
Erodent is offline   Reply With Quote
Old Jun 17th, 2009, 4:03:14 AM   #11
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

You can give them your ShoddyBattle.jar file and they will be able to run your server, but then your metaserver information will change
bearzly is offline   Reply With Quote
Old Jun 17th, 2009, 4:38:19 PM   #12
Sir Aaron Mist
 
Join Date: Jun 2009
Posts: 14
Default

This time, I used that exact code you gave me, and it said "Failed to make new account", or something on those lines.

Needless to say, I'm going to back to a different way.

Thanks for trying to help though.
Sir Aaron Mist is offline   Reply With Quote
Old Jun 17th, 2009, 6:00:41 PM   #13
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

If it failed to create an account then it sounds like there is something wrong with your mysql settings in the server.properties file. What happens when you try and run the server?
bearzly is offline   Reply With Quote
Old Jun 17th, 2009, 11:17:28 PM   #14
Erodent
I HAVE ANGST!
Pre-Contributor
 
Erodent's Avatar
 
Join Date: Aug 2008
Location: Bowser's Lovely Lift!
Posts: 1,891
Default

Hi again, how do I set up a UU (and possibly other customizable) ladderS?

Edit: I sent someone my shoddybattle.jar file but it still didnt work.
__________________
Busy with school lately...
Shoddy Account(s)............: Ping Pong Player, Up
Guides / Projects..............: EVing Guide (On-Site)* | DPP EV Hotspots Project* | Trap Guide
Full Analyses + Updates....: Diglett | Electivire* | Shedinja | Shuckle | Slaking* | Rotom-W* | Medicham | Gyarados
Other C&C Material...........: BP Bibarel | SpD Skarmory | DS Metagross* | Concise Electivire
Other Material..................: Assist Shuffle Strategy
Work in Progress..............: Trap Guide, Gyarados Revamp
Don't hesitate to PM me about C+C stuff - I like proofreading things!

Last edited by Erodent; Jun 18th, 2009 at 11:07:35 PM.
Erodent is offline   Reply With Quote
Old Jun 20th, 2009, 12:48:59 AM   #15
Darkness Wolf
Banned deucer.
 
Join Date: Jan 2009
Posts: 222
Send a message via AIM to Darkness Wolf
Default

Do you need a computer by itself to run the server? Or can you have the computer for the server and still use it?
Darkness Wolf is offline   Reply With Quote
Old Jun 20th, 2009, 8:54:20 PM   #16
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

Quote:
Originally Posted by Fat Erodent View Post
Hi again, how do I set up a UU (and possibly other customizable) ladderS?

Edit: I sent someone my shoddybattle.jar file but it still didnt work.
Try sending them your whole Shoddy Battle Server folder instead. They will also need a mysql database set up. Adding other ladders requires a bit more knowledge that I might detail another time

Quote:
Originally Posted by Fat Darkness Wolf View Post
Do you need a computer by itself to run the server? Or can you have the computer for the server and still use it?
The server is just a program running on your computer, you can continue to use it for whatever you want
bearzly is offline   Reply With Quote
Old Jun 22nd, 2009, 12:08:00 PM   #17
SetSetSet
 
Join Date: Jun 2009
Posts: 2
Default

Uhm.. I've a little problem >.<

http://shoddybattle.com/server_guide#mysql

Where do I create the Database ?

Please help me >.<
SetSetSet is offline   Reply With Quote
Old Jun 22nd, 2009, 4:52:23 PM   #18
StatigarJames
 
StatigarJames's Avatar
 
Join Date: Aug 2008
Posts: 40
Default

Quote:
Originally Posted by Fat SetSetSet View Post
Uhm.. I've a little problem >.<

http://shoddybattle.com/server_guide#mysql

Where do I create the Database ?

Please help me >.<
If you're running the server from your home computer, you need php and mysql installed on it first. I also recommend you downloading and installing phpmyadmin for easy access to your mysql database.

Once you've logged in to your database, simply quiery the code you see on that installation guide, and the tables will be made for you.
StatigarJames is offline   Reply With Quote
Old Jun 22nd, 2009, 10:18:11 PM   #19
Colin**
Administrator
is a Programmeris a Pokémon Researcheris a member of the Smogon Site Staffis a Shoddy Battle Administratoris a Smogon IRC SOp
 
Join Date: Jul 2007
Location: Edmonton, Alberta, Canada
Posts: 722
Default

php is not required to run a Shoddy Battle server or to use mysql.
Colin is offline   Reply With Quote
Old Jun 23rd, 2009, 1:14:32 AM   #20
El Blecko
is a Suspect Test Voter
 
El Blecko's Avatar
 
Join Date: Sep 2008
Location: The Crazy Amazing League!
Posts: 31
Default

I seem to be having the same problem as Sir Aaron--I get a nearly identical error message when I try to set up the first account on the server. I've done my best to follow the guide, and up until this point, everything (with one exception) has gone off without a hitch. That exception was during the MySQL installation, and it looked like this:



I'm not sure why it couldn't start the service, since I haven't deviated from the guide at all (to my knowledge, at least). It still let me open the program with the Command Line Client and input the code from the MySQL section, so I don't know if the above screenshot is a problem or not. If it is, I'd love to know how to fix it.

But anyways, during the first account set-up, I get this message:



Reading through some of the posts in this topic, I tried pasting in bearzly's suggestion, but I got a similar error:



If someone could tell me where this is all derailing (and how I could get it back on track), I would really, really appreciate it. (And I sincerely apologize if I'm asking obvious questions and/or making stupid mistakes with any of this--I'm pretty terrible with computers...)
__________________
CAL
El Blecko is online now   Reply With Quote
Old Jun 23rd, 2009, 1:48:59 AM   #21
Colin**
Administrator
is a Programmeris a Pokémon Researcheris a member of the Smogon Site Staffis a Shoddy Battle Administratoris a Smogon IRC SOp
 
Join Date: Jul 2007
Location: Edmonton, Alberta, Canada
Posts: 722
Default

I'm guessing you didn't run the MySQL installer as root. Try right click -> run as admin.
Colin is offline   Reply With Quote
Old Jun 23rd, 2009, 1:53:14 AM   #22
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

El Becko, I think your problem is that you don't have a ShoddyBattle.jar created. Go into Netbeans and F11 to build the project (or hit the blue hammer icon). Also, the account editor is pretty shoddy so it won't work with names with a space in it. You can make a dummy account and then create another account the normal way and make it an admin the normal way

I also got the service could not be started thing, but it actually worked fine so I didnt mention it.
bearzly is offline   Reply With Quote
Old Jun 28th, 2009, 5:45:38 AM   #23
Gary Oak
 
Join Date: Jun 2009
Posts: 32
Default

I have a quick question. For the server welcome page, it looks like it only interprets strings? Is there an easy way to display images/text/html/flash on the welcome besides re-writing alot of the other code?
Gary Oak is offline   Reply With Quote
Old Jul 8th, 2009, 5:51:47 AM   #24
bearzly+
Shoddy Battle dev
is a Programmeris a Shoddy Battle Administrator
 
bearzly's Avatar
 
Join Date: Apr 2009
Location: Canada
Posts: 211
Send a message via AIM to bearzly
Default

If you preface the message with <html> then it will be interpreted as HTML
bearzly is offline   Reply With Quote
Old Jul 18th, 2009, 4:46:17 PM   #25
Darkness Wolf
Banned deucer.
 
Join Date: Jan 2009
Posts: 222
Send a message via AIM to Darkness Wolf
Default

My friend has a question about the server he is creating. He wants to know how to phpmyadmin to create tables for mysql?
If there is a link to follow to download anything post it please and thanks.
Darkness Wolf is offline   Reply With Quote
Reply Smogon Community > Site & Projects > Shoddy Battle

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 1:45:57 AM.