News: We're looking for extra members and developers. May 20, 2012, 04:14:04 am
Welcome, Guest. Please login or register. *

How to import into Eclipse
Pages: 1
  Send this topic  |  Print  

  How to import into Eclipse
Author Message
0 Members and 2 Guests are viewing this topic.
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« on: June 25, 2007, 08:30:11 pm »

Install Game Engine
- Install game engine

Importing from SVN
- Open eclipse. Make sure you're in the same workspace as the one you imported the engine in
- Go to File -> New -> Project
- Select SVN -> Projects from SVN
- Select the OpenWar repository
- Click "Next"
- Select "rpg" from the resource tree
- Click finish
- "Check out as project configured using the New Project Wizard"
- Pick "Java Project"
- Enter a project name, e.g. "TopDownRPG"
- Make sure it's using JDK 1.6
- Click "Finish"
- Wait for the SVN contents to get imported

Configuring the project to compile correctly
- Right click the project and click "Properties"
- Go to "Java build path"
- Remove the single folder in the tree
- Click "Add folder"
- Select "src" and click OK
- Next to the "default output folder" field, click Browse, select "bin" (create it if neccessary) and click OK
- Go to the tab "Projects"
- Click "Add", select the game engine project and click "OK"
- Close the properties by clicking OK

Running the game for the first time
- Go to "Run -> Run..."
- Double-click "Java Application"
- Give the configuration an appropriate name
- As main class, enter "org.openwar.rpg.Main"
- Click "Run" to save and run this configuration

Running the game again
- Select the launch configuration you created in the "Run" toolbar menu (green Play button in the toolbar) or in "Run -> Run History"
« Last Edit: November 02, 2007, 12:16:20 pm by 2playgames » Logged




2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #1 on: June 29, 2007, 10:11:24 pm »

updated. the new way to load resources requires that the working directory is correctly set
Logged




Darvin
OpenWar Staff
Staff
Sr. Member
**
Offline Offline

Posts: 506


The Concept and Design King


View Profile
« Reply #2 on: June 29, 2007, 11:01:30 pm »

I followed the instructions, but it said the game wouldn't run due to errors.  I'll give it another try a bit later.
Logged
The Dead Player
OpenWar Staff
Staff
Full Member
**
Offline Offline

Posts: 185


Photoshop King


View Profile WWW
« Reply #3 on: June 29, 2007, 11:02:31 pm »

I'll give it a try tomorrow.
Logged
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #4 on: June 30, 2007, 12:31:14 pm »

what errors?
Logged




2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #5 on: June 30, 2007, 03:07:25 pm »

big update, i've splitted the engine and game into 2 projects
Logged




Darvin
OpenWar Staff
Staff
Sr. Member
**
Offline Offline

Posts: 506


The Concept and Design King


View Profile
« Reply #6 on: June 30, 2007, 11:32:48 pm »

what errors?





Lots of them
Logged
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #7 on: June 30, 2007, 11:34:17 pm »

they all involve generics (ArrayList<String>, that kind of stuff), so i'm guessing you're running/compiling it under java 1.4 (should work with 1.6 or 1.5, but i'm programming on 1.6)
Logged




Darvin
OpenWar Staff
Staff
Sr. Member
**
Offline Offline

Posts: 506


The Concept and Design King


View Profile
« Reply #8 on: June 30, 2007, 11:42:53 pm »

I figured I'd updated everything though.  Still, that gives me an idea of where to look.
Logged
Solinx
OpenWar Staff
Staff
Sr. Member
**
Offline Offline

Posts: 397


The Letter King


View Profile
« Reply #9 on: July 04, 2007, 02:41:37 pm »

At the end, when I try to run the RPG, an error reading "Selection does not contain a main type" shows up when I double click 'Java application'.

Everything is installed according to the topics you made here at the OpenWar forums.
The projects I used are Game 2D 75 and TopDownRPG 76.

I noticed Game 2D 77, which I take is a newer version, just got available. Is there some way to quickly update the project? Or are the same steps required each time?

Edit: Found out how make an easy update, using "Replace with" -> "Latest from Repository" from the menu you get by right clicking the project.

Fixed the bug too. - No, it did not. I accidently tried to run the Game 2d engine.
Fixed... the svc folders I used were missing. The correct ones are listed in the Trunk folder.

Solinx
« Last Edit: July 04, 2007, 02:55:34 pm by Solinx » Logged



"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #10 on: July 04, 2007, 03:13:06 pm »

don't double click Java Application, click it once, then make a new configuration (button at the top) and enter the necessary data Wink

Quote
I noticed Game 2D 77, which I take is a newer version, just got available. Is there some way to quickly update the project? Or are the same steps required each time?
right-click -> team -> update
Logged




CoonDawg
Full Member
***
Offline Offline

Posts: 58


View Profile
« Reply #11 on: November 02, 2007, 03:40:02 am »

Game engine link is broken.
Logged
2playgames
OpenWar Project Founder
Administrator
Sr. Member
***
Offline Offline

Posts: 857


Busy busy busy busy busy


View Profile WWW
« Reply #12 on: November 02, 2007, 12:16:41 pm »

Fixed
Logged





Pages: 1
  Send this topic  |  Print  
 

Jump to: