Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Joey_21 on May 25, 2003, 08:47:40 pm

Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 25, 2003, 08:47:40 pm
Here's something I've programmed that I think is probably the most useful thing I've ever programmed for Freespace 2. This is an atmosphere generator. It comes with backgrounds and several day/night earth settings. Documentation included telling you where to put everything. The night time setting comes with optional comet settings (up to 40 max). So far only 3 locations of earth settings are available: America, Africa, and Australia.

I have included 1 .ocx file. If there are any other ocx or dll files that the program complains about they can all be probably found on google.

The program should automatically detect your FS2 missions directory when you press "Open" on the file menu. Typing the .fs2 extension is not necessary.

Have fun!

http://denebsystem.250free.com/atmospheregen.zip

Note: Report any bugs here. This program has only been tested on the XP home OS.
Title: Introducing: Atmosphere Generator!
Post by: Knight Templar on May 25, 2003, 09:13:51 pm
Well I installed everything where it was supposed to go twice and I got this both times.


: This aplication has failed to start because VB40032.DLL was not found. Re-Installing the application may fix this problem. :
Title: Introducing: Atmosphere Generator!
Post by: Stryke 9 on May 25, 2003, 09:17:23 pm
Zee package, eet ees not complete!
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 25, 2003, 09:17:55 pm
Quote
Originally posted by Knight Templar
Well I installed everything where it was supposed to go twice and I got this both times.


: This aplication has failed to start because VB40032.DLL was not found. Re-Installing the application may fix this problem. :


Quote
Originally posted by Joey_21
I have included 1 .ocx file. If there are any other ocx or dll files that the program complains about they can all be probably found on google.
Title: Introducing: Atmosphere Generator!
Post by: Whitelight on May 25, 2003, 09:25:20 pm
Did a search....
I found VB40032.DLL on google now to try it out..
Title: Introducing: Atmosphere Generator!
Post by: Knight Templar on May 25, 2003, 09:32:33 pm
*fixes error*

*tries dealie*

*missions explode with unheard of errors, half of which probably aren't the atmosphericgen's fault*

*for some reason, sees a still shot of cutscene from fs1 with the breifing and the map that has ribos on it*

*FS2 dies*
Title: Introducing: Atmosphere Generator!
Post by: Whitelight on May 25, 2003, 09:34:15 pm
I got a runtime error:(

(edit) error53 what ever that is:confused:
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 25, 2003, 10:04:14 pm
You'll have to be more specific about the bugs, like when it happened and what you were doing.
Title: Introducing: Atmosphere Generator!
Post by: Whitelight on May 25, 2003, 10:17:02 pm
Ok my error is as stated below

Error 53
file not found
 
I have everything installed, double checked to be sure...
Oh well i`ll wait till morning to try again, I think i`m just to tired to get it right at the moment..
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 25, 2003, 10:42:22 pm
Quote
Originally posted by Whitelight
Ok my error is as stated below

Error 53
file not found
 
I have everything installed, double checked to be sure...
Oh well i`ll wait till morning to try again, I think i`m just to tired to get it right at the moment..


Which file is not found? :confused:
What were you doing when the program gave you this error?
Title: Introducing: Atmosphere Generator!
Post by: ZylonBane on May 25, 2003, 11:27:57 pm
Atmosphere generator? Huh?

Screenshot of end result, please.
Title: Introducing: Atmosphere Generator!
Post by: Whitelight on May 25, 2003, 11:42:59 pm
I installed everything from the zip and downloaded the VB40032.DLL and installed in  C:\windows\system
Ok in this order
1. opened Atmosgen.exe
2. Atmosphere gen window opens and asks for a mission file
3. I typed in the name of the file test.fs2
4. I click on save
5.I get error 53 file not found

Do I have to enter the complete path to the mission file.. That is the only thing I haven`t tried.. Or maybe i`ve screwed up the installation somehow, which could be..

(edit) I`m running windows 98SE I don`t like windows XP, or they don`t like me:D
Title: Introducing: Atmosphere Generator!
Post by: YodaSean on May 25, 2003, 11:48:16 pm
its probably the visual basic support package thingy.  You can find it on microsoft.com somewhere.  Sorry i can't be more of a help, but I'm really lazy :o
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 12:09:34 am
Quote
Originally posted by Whitelight
I installed everything from the zip and downloaded the VB40032.DLL and installed in  C:\windows\system
Ok in this order
1. opened Atmosgen.exe
2. Atmosphere gen window opens and asks for a mission file
3. I typed in the name of the file test.fs2
4. I click on save
5.I get error 53 file not found

Do I have to enter the complete path to the mission file.. That is the only thing I haven`t tried.. Or maybe i`ve screwed up the installation somehow, which could be..

(edit) I`m running windows 98SE I don`t like windows XP, or they don`t like me:D


You need to edit an existing mission! Go in to FRED2 and save a new mission and then use the atmosphere generator. Sorry if there was any confusion. :)

Edit: I just updated the EXE to work even if the file doesn't exist. It will create a blank mission for you. :)

http://denebsystem.250free.com/atmosgen.zip
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 12:34:02 am
Quote
Originally posted by ZylonBane
Atmosphere generator? Huh?

Screenshot of end result, please.


Here's a mission with 20 comets that were randomly placed by the generator.

(http://denebsystem.250free.com/screen00.jpg)
(http://denebsystem.250free.com/screen01.jpg)
(http://denebsystem.250free.com/screen02.jpg)
(http://denebsystem.250free.com/screen03.jpg)
(http://denebsystem.250free.com/screen04.jpg)
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 02:16:41 am
http://denebsystem.250free.com/atmosgen.zip

I just now added a way to be able to add your own custom atmosphere models. Simply edit the atmosgen.ini file (which is automatically created by the program) and edit accordingly:

[Atmosphere Generator]
1=America
2=Australia
3=Africa
4=YourCustomEntry
5=AnotherCustomEntry
6=AndSoOn...

Just make sure that your custom entries start with the same name as the ship name in FRED2.

Example:

To add a Belgium entry you would name the Belgium entry in the ships.tbl accordingly:

BelgiumDay
BelgiumNight

and in the .ini file it would look like this:

4=Belgium

...or whatever number it happens to be (do not leave gaps in between the numbering sequence or it will not detect them).
Title: Introducing: Atmosphere Generator!
Post by: Whitelight on May 26, 2003, 02:30:41 am
That new improvement to make a blank mission file will help make things easy.. And the screen shots are awsome, atmosgen is really comming along.. I`ll give it a shot later, now I must really get some must needed rest
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 05:46:01 am
Update: The "random" number generator for the comet-placer appeared to maintain a certain sequence so I made it to where the random numbers would indeed generate random ones even if the program is restarted.
Title: Introducing: Atmosphere Generator!
Post by: Solatar on May 26, 2003, 08:24:32 am
Error number 68, device not found.

I'm running XP home...
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 11:16:14 am
Quote
Originally posted by Solatar
Error number 68, device not found.

I'm running XP home...


Does it list anything else? Like a dll or ocx name/number?

Edit: Try putting this file in your Windows\System\ and/or Windows\System32\ directory:

http://denebsystem.250free.com/wscript.zip
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 03:39:21 pm
South America scene addon just now uploaded. :)

Just add
4=SouthAmerica
to atmosgen.ini located in the same directory where you put the program.

http://denebsystem.250free.com/southamerica.zip

I assume you guys know where to put everything else. ;)
Title: Introducing: Atmosphere Generator!
Post by: Solatar on May 26, 2003, 03:49:25 pm
Quote
Originally posted by Joey_21


Does it list anything else? Like a dll or ocx name/number?

Edit: Try putting this file in your Windows\System\ and/or Windows\System32\ directory:

http://denebsystem.250free.com/wscript.zip


nope, it just says that, then crashes...

EDIT: That file in the .zip didn't help.
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 03:58:02 pm
Quote
Originally posted by Solatar


nope, it just says that, then crashes...

EDIT: That file in the .zip didn't help.


Are you pressing "open" when this happens?
Title: Introducing: Atmosphere Generator!
Post by: Solatar on May 26, 2003, 03:59:54 pm
I press open, ethen type in the filename for the mission, then when I click either "ok" or "cancel" it does this.
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 26, 2003, 07:22:01 pm
I've just been through some thorough debugging with Solatar. It seems that multiple installs of FS2 on your system could cause some conflicts as far as hard drive paths go. Anyway, the executable has been updated in both zip's. :)
Title: Introducing: Atmosphere Generator!
Post by: Joey_21 on May 30, 2003, 11:32:09 pm
bump :D

Anybody else ever finally get this working?