Galaxy Traders 6

I have completed some code for Galaxy Traders 6 (GT6) You can use arrow keys to fly around and esc to exit.

You should be able to mouse click objects in sector to target. I was having trouble with the device settings
but with some research and some of Jeff’s code I found in the forums, I think I may have gotten it situated.

The code is on http://www22.brinkster.com/mbowles/gt6.htm

Please let me know what you think and more importatnly if you have any errors with it.

I apologize for the web host, I should have a more accessible spot soon. There is a bat for Win users, though you may have to mod for your classpath. Otherwise its: java GT6.GT6
It is compiled with java 1.4.1_02.

M

no errors
you could remove the static stars and move them at different speed to make it more spacy

thanks!!
very true about the stars. There are actually 5-10 “stars” out there that do move, but that isnt enough to notice.

Otherwise did it run ok? smooth? etc?

Ran very smooth, very clean, no problems, glitches or annoyances. Keep it up.

thanks a ton! will do!

M

OS X 10.3.1 Java 1.4.2 DP1

Ran ok, felt mighty slow though.

you are my first mac test. Glad it loaded and ran. It is set for a 2-3 pixel per iteration movement so not very fast. If you hold shift with up arrow, it should move faster. I guess I need to add a framerate to the top.
thanks!!

Worked very well for me, there was an occasional white flash, but appart from that, looking good!

System:

java RTE 1.4.1_01


System Information

Time of this report: 12/2/2003, 10:42:23
Machine name: ARRAGORN
Operating System: Microsoft Windows 2000 Professional (5.0, Build 2195) Service Pack 4
Language: English (Regional Setting: English)
System Manufacturer: Compaq
System Model: DSDT
BIOS: 686Y2 v1.04
Processor: Intel® Pentium® 4 CPU 1.50GHz
Memory: 384MB RAM
Page File: 299MB used, 427MB available
Primary File System: NTFS
DirectX Version: DirectX 8.1 (4.08.01.0881)
DX Setup Parameters: Not found
DxDiag Version: 5.01.2600.0881 32bit Unicode


Display Devices

    Card name: NVidia Vanta
 Manufacturer: NVidia
    Chip type: NV5
     DAC type: Integrated RAMDAC
    Device ID: Enum\PCI\VEN_10DE&DEV_002C&SUBSYS_007210DE&REV_15

Display Memory: 16.0 MB
Current Mode: 1280 x 1024 (32 bit) (75Hz)
Monitor: Plug and Play Monitor
Monitor Max Res: 1600,1200
Driver Name: nv4.dll
Driver Version: 5.00.2160.0327 (English)
DDI Version: Unknown
Driver Attributes: Final Retail
Driver Date/Size: 12/8/1999 03:13:38, 530192 bytes
Driver Signed: Yes
WHQL Date Stamp: n/a
VDD:
Mini VDD: nv4.sys
Mini VDD Date: 10/28/1999 01:53:38, 345040 bytes
Device Identifier: {D7B71E3E-436C-11CF-2972-0228BAC2C835}
Vendor ID: 0x10DE
Device ID: 0x002C
SubSys ID: 0x007210DE
Revision ID: 0x0015
Registry: OK
DDraw Status: Enabled
D3D Status: Not Available
AGP Status: Not Available
DDraw Test Result:
D3D7 Test Result:
D3D8 Test Result:


Sound Devices

  Description: SoundMAX Digital Audio
    Device ID: PCI\VEN_8086&DEV_2445&SUBSYS_008A0E11&REV_12

Manufacturer ID: 1
Product ID: 100
Type: WDM
Driver Name: smwdm.sys
Driver Version: 5.12.01.3038 (English)
Driver Attributes: Final Retail
Driver Signed: No
Date and Size: 10/25/2001 15:39:28, 465096 bytes
Other Files:
Driver Provider: Analog Devices
HW Accel Level: Standard
Registry: OK
Sound Test Result:


DirectMusic

DLS Path: C:\WINNT\SYSTEM32\drivers\GM.DLS
Version: 1.00.16.0002
Ports:
Microsoft Synthesizer, Software (Not Kernel Mode), Output, DLS, Internal, Default Port
SoundMAX Digital Audio, Software (Kernel Mode), Output, DLS, Internal
Microsoft MIDI Mapper [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal
Microsoft GS Wavetable SW Synth [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal
Registry: OK
Music Test Result:

Hi,

very nice!!!

At the first start my screen was fragmented. The second time are started the game everything was fine.
It would be cool if you could set the destination of the spacecraft wit the mouse.

  • Dell Laptop (Latitude C600)
  • Win2000
  • ATI Mobility M3

ciao torsten

cool, thanks!

Yeah, one of my first thoughts was to have the ship destination set by mouse click, but I haven’t gone as far as working out the “when to rotate, when to move forward” and any other physics. WOuld be nice to have it completely mouse driven, with the occasional trip to the keyboard to enter numbers for trades/purchases/etc…

It is now an executable jar!

not much of an update…
http://www22.brinkster.com/mbowles/gt6.htm

added FPS counter, basic targeting system(use backward quote, left of 1 key), create more objects for future play.

I know it is not your fault, blame windows :wink: but when hitting the shift key in rapid succession 5 times brings up the “sticky keys” alert in Windows.

This dumps you back to the desktop and it seems that you cannnot get back to the game :frowning:

It may be necessary to get some jini to disable this ‘feature’.

JNI not JINI, JINI’s a whole different basket.

The easiest solution is don’t use Shift as something that needs to be hit alot, i.e. fire.

Kev

thanks moogie and kev…the shift key, right now, switchs from regular speed to high speed. This will be changed to another type of control(nums across top maybe) when I complete the startshipcomponent and starshipengine classes.

thanks again!

M

Great looking game - or at least the start of one!

I have two questions for you (if you don’t mind):

  1. How do you rotate the images in place? Mind sharing that code snippet?

  2. Is there a Galaxy Traders 5 we can play with while you work on version 6?

cheers,
Andrew

[quote] Great looking game - or at least the start of one!

I have two questions for you (if you don’t mind):

  1. How do you rotate the images in place? Mind sharing that code snippet?

  2. Is there a Galaxy Traders 5 we can play with while you work on version 6?

cheers,
Andrew
[/quote]
Rotation is done with Graphics2D’s AffineTransform…


// rotate players ship
if(rotateRight) facing += 0.05;
if(rotateLeft) facing -= 0.05;
// other sin and cos calcs for positioning
AffineTransform at = new AffineTransform();
// translation here
// now rotate
at.rotate(facing,shipWidth>>1,shipHeight>>1);                  
g.setTransform(at);
// now paint the player

The actual rotation calc may end up in the server later on.

Actually there was a Galaxy Traders 5, it was a 640480 applet with a 400400 canvas with very simple 2d graphics. It is no longer up and running, though it did have a decent player base, or at least what I thought was one. 600+ players in the database with an average of 10-12 online at a time with peaks at 15+ and lows of 1-2.

Galaxy Traders 4 was a Browser based game(like a lot of the space trade comabt clones out there). It was originally titled Starship Traders 4, but at release time the guy hosting it for me discovered someone was already using the name.

Startship Traders 3 was a text mud.(attmpeted to make this a BBS game on The Underground BBS)

Startship Traders 2 was a C64 slightly graphical single player game done in qbasic.

Startship Traders 1 was a table top game, using D&D’s d20 system.

Thanks for the code - I have a lot to learn when it comes to Graphics2D (and on many other topics, I’m sure! :slight_smile: ).

cheers,
Andrew

I have the server started, and would like any feedback you can provide. Chat is real-time/multi, ship movement is server based but you can only see yourself.
Instuctions: http://www22.brinkster.com/mbowles/gt6/

Game jar: (should work :-/) http://www22.brinkster.com/mbowles/gt6/gt6.jar

Thanks a ton!

I put the server back up again as I have added teh basics for seeing others inthe same sector. Any feedback would be great, but specifically looking for:
1 - could you connect?
2 - did screen look ok, or was it skewed “leftward” i e text squished to the left.
3 - did you see anyone else?
4 - did chat work?

Thanks a ton!

I get this message after a few seconds and then the game shuts down.

[quote]All known internet servers are offline. Server lookup coming soon! Shutting down client in 5 seconds!
[/quote]