It is currently 06 Aug 2025, 17:46
   
Text Size

Shandalar Clone

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Shandalar Clone

Postby Rob Cashwalker » 31 Aug 2010, 04:37

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.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Shandalar Clone

Postby Jaedayr » 01 Sep 2010, 02:09

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)
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Shandalar Clone

Postby DennisBergkamp » 01 Sep 2010, 19:57

:lol:

I'll put something up soon (within the next few days).
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby DennisBergkamp » 03 Sep 2010, 06:49

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 :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby DennisBergkamp » 06 Sep 2010, 03:19

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 :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby timmermac » 06 Sep 2010, 04:21

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.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
User avatar
timmermac
Tester
 
Posts: 1512
Joined: 17 May 2010, 20:36
Has thanked: 18 times
Been thanked: 95 times

Re: Shandalar Clone

Postby DennisBergkamp » 06 Sep 2010, 04:52

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)
- ...
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby Bog Wraith » 06 Sep 2010, 16:25

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.
'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
User avatar
Bog Wraith
Global Mod 1 (Ret)
 
Posts: 1108
Joined: 28 May 2008, 22:40
Location: Shandalar
Has thanked: 425 times
Been thanked: 153 times

Re: Shandalar Clone

Postby DennisBergkamp » 06 Sep 2010, 16:41

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.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby silly freak » 06 Sep 2010, 17:12

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
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Shandalar Clone

Postby Huggybaby » 06 Sep 2010, 17:13

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)
User avatar
Huggybaby
Administrator
 
Posts: 3226
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 744 times
Been thanked: 601 times

Re: Shandalar Clone

Postby Bog Wraith » 06 Sep 2010, 18:01

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.
Attachments
screenshot_04.jpg
'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
User avatar
Bog Wraith
Global Mod 1 (Ret)
 
Posts: 1108
Joined: 28 May 2008, 22:40
Location: Shandalar
Has thanked: 425 times
Been thanked: 153 times

Re: Shandalar Clone

Postby DennisBergkamp » 06 Sep 2010, 19:12

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).
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby DennisBergkamp » 06 Sep 2010, 19:24

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.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Shandalar Clone

Postby Bog Wraith » 06 Sep 2010, 23:27

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.
'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
User avatar
Bog Wraith
Global Mod 1 (Ret)
 
Posts: 1108
Joined: 28 May 2008, 22:40
Location: Shandalar
Has thanked: 425 times
Been thanked: 153 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 22 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 22 users online :: 0 registered, 0 hidden and 22 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 22 guests

Login Form