Custom Universe creation

Tips, tactics, and general discussion for Evochron Legacy.
Snake
Ensign
Ensign
Posts: 3
Joined: Sat Nov 17, 2007 9:11 am
Location: Italy

Custom Universe creation

Post by Snake »

Hallo to all spaceman... rookies (like me) and veterans

I try to make a program to create a pseudo-random universe for evochron.

At this time program places stars, planets, moon, stars, blackhole and wormhole (with random destination) with all their features and it also set the nebula-background and reputation;

but i have 2 bproblems: :(

1) In sector (0,0,0 - start sector) appears a cave-asteroid that my program has never placed. This cave-asteroid is near the center of sector;

2) The overall reputation of start sector is "Good" but the reputation of all faction is 0%;

Someone can help me ?

I hope to post this program soon.
User avatar
Vice
Administrator
Administrator
Posts: 12227
Joined: Fri Apr 25, 2003 1:38 am

Custom Universe creation

Post by Vice »

It's hard to say without seeing the data file it created. But here are a couple of things to check. First, make sure the minimum and maximum sector range for the backdrop and reputation code block are accurate to include sector 0,0,0. It can be easy to get the lower value and higher one reversed. Also, make sure you specify at least one code block for every object type in the game, otherwise there may be some objects that the game won't know where to place, so they could wind up at 0,0,0.
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
Snake
Ensign
Ensign
Posts: 3
Joined: Sat Nov 17, 2007 9:11 am
Location: Italy

Custom Universe creation

Post by Snake »

thanks for tips

1) at this moment i have not yet placed every object types, so this explains the presence of cave-asteroid in the center of (0,0,0) sector and also the presence of asteroid around it. (program do nt place asteroids yet)

2) With your tips i found a couple of bugs in object placement and backdrop definition. But it not solve the problem of reputation. Sector (0,0,0) is in the area of Backdrop.

This is the universe generated by my program

universedata.zip

Thanks for your tips ;)
User avatar
Vice
Administrator
Administrator
Posts: 12227
Joined: Fri Apr 25, 2003 1:38 am

Custom Universe creation

Post by Vice »

One possible cause might be the gaps in between systems. If you have an area of space that does not have any defined reputation and you jump there or spawn there, you could wind up with wierd reputation results. The easiest fix for this would be to just include a code block at the very top of your file setting up a basic reputation if the player ever travels through undefined space. Here is an example:

-Local Nebula Backdrop And Reputation
NebBackXLow=-10000
NebBackXHigh=10000
NebBackYLow=-10000
NebBackYHigh=10000
NebBackZLow=-10000
NebBackZHigh=10000
NebBackText=7
NebBackReputationID=1000
NebBackReputation=0
-EndNebBack

-Local Ship Types
ShipsXLow=-10000
ShipsXHigh=10000
ShipsYLow=-10000
ShipsYHigh=10000
ShipsZLow=-10000
ShipsZHigh=10000
ShipsTypeMin=2
ShipsTypeMax=7
ShipsGunMin=1
ShipsGunMax=8
-EndShips

... rest of file would continue below
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
tha_rami
Commander
Commander
Posts: 890
Joined: Tue Jan 25, 2005 2:20 pm
Location: Netherlands

Custom Universe creation

Post by tha_rami »

I actually made something like this earlier, but my project kinda died when I lost the code for it. Shame. Hope you're in better luck!
tha_rami - The best way to predict the future is to invent it.
Vlambeer - Dutch indie game studio
Twitter - Weird news, life updates & game-related news
Snake
Ensign
Ensign
Posts: 3
Joined: Sat Nov 17, 2007 9:11 am
Location: Italy

Custom Universe creation

Post by Snake »

I hope so, tha_rami. We can exchange some ideas to create a better program. My program is written in Java (1.4.2) and i will release it under GPL license. Sadly i have not much time to develop it.

Vice, i try your solution, but it has not effect. Prolem with faction reputation remain; all reputation is 0%. When i have more time i try to solve this problem. now i wont to place all object types and the solve reputation problem. Thanks very much for support.