Conquer Club

Java program for map testing?

Topics that are not maps. Discuss general map making concepts, techniques, contests, etc, here.

Moderator: Cartographers

Forum rules
Please read the Community Guidelines before posting.

Java program for map testing?

Postby InkL0sed on Sat Jul 19, 2008 9:19 am

So... when I'm bored, I usually end up making useless applications.

I have been rather bored lately - too much time on my hands...

I've been experimenting with writing a program to play RISK on, and I think I can do it.

That is, as of now, I could probably make a completely text-based version. But I wouldn't be able to make a GUI (well... maybe, but that would take a LONG time for me to figure out on my own) - much less add a functionality for using images of maps...

I'm also not sure how useful it would be if it wasn't an applet somewhere on the Internet. I mean, I suppose you could play with yourself, but that's never fun.

So, should I bother with the GUI part, or make it completely text-based? Yeti, I'm talking to you now!

Let me know what you guys think.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby gimil on Sat Jul 19, 2008 9:24 am

lil old yeti isn'y around right now, but I think java is his laguage of choice. Any apllication that can help with map gameplay is welcome to me!
What do you know about map making, bitch?

natty_dread wrote:I was wrong


Top Score:2403
User avatar
Corporal 1st Class gimil
 
Posts: 8599
Joined: Sat Mar 03, 2007 12:42 pm
Location: United Kingdom (Scotland)

Re: Java program for map testing?

Postby InkL0sed on Sat Jul 19, 2008 9:25 am

gimil wrote:lil old yeti isn'y around right now, but I think java is his laguage of choice. Any apllication that can help with map gameplay is welcome to me!


Yeah, I happen to know he's a Java programmer, which is why I really want his input. I almost PMed him, but I figured why not make a thread and see what other people say too.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby TaCktiX on Sat Jul 19, 2008 9:10 pm

I program using Java as well. When I got sick and tired of hand-parsing the Map Stats after compiling them, I made a Java program that could read and parse CSV into what I wanted.

Go GUI. Risk is a visual game, being able to see what's going on is a big deal.
User avatar
Corporal 1st Class TaCktiX
 
Posts: 2392
Joined: Mon Dec 17, 2007 8:24 pm
Location: Rapid City, SD

Re: Java program for map testing?

Postby bryguy on Sat Jul 19, 2008 9:26 pm

TaCktiX wrote:I program using Java as well. When I got sick and tired of hand-parsing the Map Stats after compiling them, I made a Java program that could read and parse CSV into what I wanted.

Go GUI. Risk is a visual game, being able to see what's going on is a big deal.


its a VERY big deal.


If you cant see what your doing, say, when defusing a bomb, theres a very high chance that you will set it off
Corporal bryguy
 
Posts: 4381
Joined: Tue Aug 07, 2007 8:50 am
Location: Lost in a Jigsaw

Re: Java program for map testing?

Postby ZeakCytho on Sat Jul 19, 2008 9:31 pm

While a text based tool would be slightly useful, I agree that a GUI would make it much better.
User avatar
Captain ZeakCytho
 
Posts: 1251
Joined: Wed Sep 12, 2007 4:36 pm

Re: Java program for map testing?

Postby InkL0sed on Sun Jul 20, 2008 6:17 am

Well yeah obviously it would make it better. The problem is I'd basically have to learn how to make GUIs and stuff... I know the bare minimum as of now.

I suppose I could make a text-based version first and then make a GUI later...
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Sun Jul 20, 2008 6:57 am

Will answer in detail on monday...

Although I'll leave you with 1 question?

Are you making a freestanding app - or are you flowing it through webpages (JSP's/servlets?)

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby InkL0sed on Sun Jul 20, 2008 7:05 am

yeti_c wrote:Will answer in detail on monday...

Although I'll leave you with 1 question?

Are you making a freestanding app - or are you flowing it through webpages (JSP's/servlets?)

C.


I'd like to do the latter - but I don't know how.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Sun Jul 20, 2008 3:43 pm

Get tomcat...

it's free - will run a Servlet engine for you... - you just need to plug in the JSP's!!! (He says that as if it's easy!!)

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby InkL0sed on Sun Jul 20, 2008 3:55 pm

Yeah, I should mention I know next to nothing about the workings of the Internet.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Sun Jul 20, 2008 3:58 pm

InkL0sed wrote:Yeah, I should mention I know next to nothing about the workings of the Internet.


No probs...

I'll post something better for you tomorrow.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby ZeakCytho on Sun Jul 20, 2008 4:03 pm

InkL0sed wrote:Yeah, I should mention I know next to nothing about the workings of the Internet.


*insert series-of-tubes joke here*
User avatar
Captain ZeakCytho
 
Posts: 1251
Joined: Wed Sep 12, 2007 4:36 pm

Re: Java program for map testing?

Postby InkL0sed on Sun Jul 20, 2008 4:56 pm

ZeakCytho wrote:
InkL0sed wrote:Yeah, I should mention I know next to nothing about the workings of the Internet.


*insert series-of-tubes joke here*


Yes, I can foresee yeti's explanation already.

"You see - the World Wide Web is not so much a web as a series of inter-connected cyber-tubes that serve as conduits for various data - here is a map:
Image

Good luck finding your way."
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby gimil on Sun Jul 20, 2008 5:46 pm

I can see my house!
What do you know about map making, bitch?

natty_dread wrote:I was wrong


Top Score:2403
User avatar
Corporal 1st Class gimil
 
Posts: 8599
Joined: Sat Mar 03, 2007 12:42 pm
Location: United Kingdom (Scotland)

Re: Java program for map testing?

Postby Kaplowitz on Sun Jul 20, 2008 5:52 pm

gimil wrote:I can see my house!

I can see your house too!
Image
User avatar
Private 1st Class Kaplowitz
 
Posts: 3088
Joined: Tue May 01, 2007 5:11 pm

Re: Java program for map testing?

Postby bryguy on Sun Jul 20, 2008 5:54 pm

Kaplowitz wrote:
gimil wrote:I can see my house!

I can see your house too!


I can see my own house and both you guys houses!
Corporal bryguy
 
Posts: 4381
Joined: Tue Aug 07, 2007 8:50 am
Location: Lost in a Jigsaw

Re: Java program for map testing?

Postby InkL0sed on Mon Jul 21, 2008 3:49 pm

Yeti, your time to fulfill your word is running out!
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Mon Jul 21, 2008 4:10 pm

InkL0sed wrote:Yeti, your time to fulfill your word is running out!


Bugger - tomorrow OK?

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby InkL0sed on Mon Jul 21, 2008 4:13 pm

Patience - I has it.
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Tue Jul 22, 2008 8:04 am

OK - here's a very basic post about JSP's etc...

Essentially - you need a "Servlet engine" - a lot of people use Tomcat (it's free) others around are things like Websphere, JBoss, Weblogic - but they're a bit more heavy duty than you'll need...

So - how does it all hang together... essentially - you need to set it up with the main building blocks are detailed in this...

http://j-integra.intrinsyc.com/support/ ... nment.html

Tomcat has tutorials too...

http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

To start an application within tomcat you need a few necessary things... Here's a couple of brief tutorials...

http://www.coreservlets.com/Apache-Tomc ... nment.html
http://dn.codegear.com/article/22057

I'd suggest downloading "Eclipse Europa" - and getting the tomcat plugin - this allows you to stop and start you Tomcat from within your IDE!!

So - what happens under the hood?

There are a few ways of doing stuff but the main 2 are thus.
a) Straight jsp's. - These are JSP files (similar to HTML but with extra stuff in) and you load them directly - and they get parsed by the servlet engine into HTML.
b) Servlets - These are referenced in web.xml under specific paths - and equate to a Java Class that enables you to capture the Server requests - and then output direct - or to a specific JSP(s).

Note that
a) JSP's can be included in other JSP's (So for instance - create one "wrapper" JSP - then you can plugin smaller generic bits and pieces.
b) JSP's can contain actual Java code - but to output it to the HTML - you need to stringify it.
c) AJAX is your friend!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby cairnswk on Tue Jul 22, 2008 8:31 am

oh bugger ^^^ way over my head #-o
Image
* Pearl Harbour * Waterloo * Forbidden City * Jamaica * Pot Mosbi
User avatar
Private cairnswk
 
Posts: 11510
Joined: Sat Feb 03, 2007 8:32 pm
Location: Australia

Re: Java program for map testing?

Postby InkL0sed on Tue Jul 22, 2008 8:52 am

I'll need several days to digest that...
User avatar
Lieutenant InkL0sed
 
Posts: 2370
Joined: Sat Jun 23, 2007 4:06 pm
Location: underwater

Re: Java program for map testing?

Postby yeti_c on Tue Jul 22, 2008 8:57 am

InkL0sed wrote:I'll need several days to digest that...


NP - feel free to send/ask more questions...

All the pertinent info is available on the net (I personally haven't set up a servlet engine (ours was already there!))

So - if in doubt ask - or hunt the web... you should be able to get one up sooner or later!!

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Re: Java program for map testing?

Postby fireedud on Tue Jul 22, 2008 9:04 am

yeti, I love your new avi.
me have no sig
Cook fireedud
 
Posts: 1704
Joined: Fri Mar 02, 2007 10:06 pm

Next

Return to Foundry Discussions

Who is online

Users browsing this forum: No registered users