Page 11 of 20

Re: Shandalar Clone

PostPosted: 31 Aug 2010, 04:37
by Rob Cashwalker
Anyway, I'd like to make the dungeons in a similar style as in Shandalar... but I'm not sure how to implement them yet exactly, the background would have to change to some interior dungeon view.
This would also apply to a town/city/village. When the player sprite lands on such a tile in the world map, a town map is used to travel between different buildings. Same theory for a dungeon, I guess, though the dungeon could itself be a few screens-worth.

To be honest I'd rather see this as a Magic-oriented Grand Theft Auto.... You define your own course of action in an environment with many options for game play. There are the mafia missions which provide the overall storyline and advance to the "ending", while there are numerous "jobs" available from "civilians". Along the way, there are all sorts of side-games, (like taxi driving, a humvee driving course, a street race or stealing specific rare cars) besides just the pure (evil) fun of interacting with a city full of people....
The storyline is like our current level-up type of progression through opponents of growing strength.
The civilian jobs are like the special quests.
The side-games are like tournaments or dungeons.
The interaction with inhabitants with intent to defeat them (like killing the hookers for cash) are the random encounters.

Even if you've achieved the end of the story, there should be no reason you can't continue playing the game as-is, as there's always some part of the game that keeps churning out new quests.

Re: Shandalar Clone

PostPosted: 01 Sep 2010, 02:09
by Jaedayr
Rob Cashwalker wrote:
To be honest I'd rather see this as a Magic-oriented Grand Theft Auto....
So how soon can we test GTM? :D
(Grand Theft Magic)

Re: Shandalar Clone

PostPosted: 01 Sep 2010, 19:57
by DennisBergkamp
:lol:

I'll put something up soon (within the next few days).

Re: Shandalar Clone

PostPosted: 03 Sep 2010, 06:49
by DennisBergkamp
Progress has been slow again (too busy with real life stuff), at least I'm about 60% done with the land tiles. I'll try to post something tomorrow so you guys can at least see what it looks like (even though a lot of stuff isn't functional yet).

Also, I found some GREAT music on opengameart.org, I will definitely use a bunch of those tracks, thanks again Lord of 13 for pointing out that site :)

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 03:19
by DennisBergkamp
Slight delay, but here is a test version:

http://www.mediafire.com/?iakykg5gdlictxk

Start the game with:

Code: Select all
java -cp StartBattle.jar mapcampaign.MapCampaign
or if on Windows, simply run the start.bat file.
Also, be sure to copy over the images from your regular Forge version.

Lots of stuff doesn't work yet, but most of the basics should... let me know what you guys think :)

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 04:21
by timmermac
I like it so far... Is it possible to do anything in the town yet? Also, can we get more of a list of what does and doesn't work? I just clicked the stats button and it totally killed the game.

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 04:52
by DennisBergkamp
Hmm, I don't think this stuff works yet:

- Stats button
- Card Shops
- Library / Apothecary / Gear
- Random encounters based on terrain type
- Saving your deck file as something that has spaces in it
- Saving a deck will require a reopen of the menu before it shows up
- ...

This should work:

- Opening boosters (in "Inventory")
- Treasury, Nursery, Pet Shop (the pet buyable depends on the town - for example the Swamp town should sell the Croc)
- ...

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 16:25
by Bog Wraith
I tried it first on my Windows 7 machine and nothing worked. I then tried it using XP compatibility mode, still no go.

I then tried it on a XP install on my Mac using Parallels. No go either.

All of these were tried running the .bat file.

Lastly I tried it on my Mac using the Terminal with the entry
java -cp StartBattle.jar mapcampaign.MapCampaign.

Again nothing. Here is the report from the java attempt on my Mac running Snow Leopard:

JDs-Mac-Pro:~ JD$ java -cp StartBattle.jar mapcampaign.MapCampaign
Exception in thread "main" java.lang.NoClassDefFoundError: mapcampaign/MapCampaign
Caused by: java.lang.ClassNotFoundException: mapcampaign.MapCampaign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248


Hope this helps Dennis.

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 16:41
by DennisBergkamp
Bog Wraith,

Very strange... did you see any errors when attempting to run it on your Windows 7 / XP machine ? (if the window disappears too quickly to see an error log, just run the bat file from command prompt, or try "java -cp ... " )
To be honest, I haven't tested this on a Mac yet, I'll see if I can get it running on my friend's Snow Leopard. The only thing I can think of is that your java might be out of date. If so, try updating to 1.6.

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 17:12
by silly freak
maybe you're not in the right directory? try cd'ing there

if StartBattle.jar is in another directory than your shell, it won't be found and silently ignored. in what directory a double-click executes the command is platform dependent, so this might be the issue.

using a bash shell, this should work (if my suspicion is right):

start.sh
Code: Select all
cd `dirname $0`
java -cp StartBattle.jar mapcampaign.MapCampaign
$0 is the script's filename, dirname extracts the directory part. This is the way how I always start forge

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 17:13
by Huggybaby
It doesn't work for me either, Win 7 x64.

Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
   http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
   mtgerror@yahoo.com


0


Version:
Forge -- official beta: $Date: 2010-05-01 02:21:42 -0500 (Sat, 01 May 2010) $, SVN revision: $Revision: 916 $

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_17 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ArrayIndexOutOfBoundsException: 0
   at forge.StartBattle.main(StartBattle.java:98)

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 18:01
by Bog Wraith
I don't have much experience in Terminal on Mac, so thanks Silly Freak for the heads up on the input to directory!

I've got a bit of experience in command prompt on the Windows side based on my old DOS experiences, but I'm still not very versed in keyboard inputing.

Ok, did Silly Freak's method. I moved the directory into my home folder on my Mac, cd to the directory and ran the command.
Got this error report.

JDs-Mac-Pro:~ JD$ cd testMap
JDs-Mac-Pro:testMap JD$ java -cp StartBattle.jar mapcampaign.MapCampaign
Reading file: Images/imsInfo.txt

o Line: Images/bigmap.gif
Stored bigmap/bigmap.gif

o Line: Images/bigmapNight.gif
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:324)
at apple.awt.CGraphicsConfig.createCompatibleImage(CGraphicsConfig.java:133)
at mapcampaign.ImagesLoader.loadImage(ImagesLoader.java:691)
at mapcampaign.ImagesLoader.loadSingleImage(ImagesLoader.java:194)
at mapcampaign.ImagesLoader.getFileNameImage(ImagesLoader.java:176)
at mapcampaign.ImagesLoader.loadImagesFile(ImagesLoader.java:118)
at mapcampaign.ImagesLoader.<init>(ImagesLoader.java:71)
at mapcampaign.AlienTilesPanel.<init>(AlienTilesPanel.java:138)
at mapcampaign.MapCampaign.<init>(MapCampaign.java:121)
at mapcampaign.MapCampaign.main(MapCampaign.java:319)



I am running the current Java release on Snow Leopard.


Also tried running start.bat file from the command prompt in XP.

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 19:12
by DennisBergkamp
Ok, looking at the XP screen it seems either java is not installed, or somehow it's not added to the path...

The Snow Leopard error you're getting is a good sign... the program is starting but it then quickly runs out of memory as it's trying to load the graphics.
Try running it with:

java -Xmx1024M -cp StartBattle.jar mapcampaign.MapCampaign
(you can also try -Xmx512M or -Xmx2048M)

And see if it loads the map. Now even if that works, there still will be the problem once a battle is started and finished (a similar call will be made "java -cp StartBattle.jar mapCampaign.MapCampaign, without the -Xmx1024M, but I can fix that later).

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 19:24
by DennisBergkamp
Huggybaby wrote:It doesn't work for me either, Win 7 x64.

Code: Select all
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
   http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
   mtgerror@yahoo.com


0


Version:
Forge -- official beta: $Date: 2010-05-01 02:21:42 -0500 (Sat, 01 May 2010) $, SVN revision: $Revision: 916 $

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_17 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ArrayIndexOutOfBoundsException: 0
   at forge.StartBattle.main(StartBattle.java:98)
Be sure to run Start.bat instead of double clicking the jar.

Re: Shandalar Clone

PostPosted: 06 Sep 2010, 23:27
by Bog Wraith
I have the latest java version running on all my computers. I tried the command prompt method on my Win 7 machine and had the same problem.

I will give it another go on my Mac tomorrow with the command line you listed above & report.