Author Topic: Little problem with Kazan's random bg generator  (Read 11594 times)

0 Members and 1 Guest are viewing this topic.

Offline Solatar

  • 211
Little problem with Kazan's random bg generator
I used to use this proggy a lot, then I deleted it along with a bunch of other fs2 stuff. Now I'd like to use it again, but when I try to generate a new background, it tells me nebulae.lst and suns.lst can't be found. I can plainly see they are in both the directory the program is in, and the directory my missions are in. Any help?

 

Offline diamondgeezer

Little problem with Kazan's random bg generator
They need to be in C:\Program Files\Kazan, regardless of where you installed the program. What you do if you don't have a C: drive I don't know...

 

Offline Solatar

  • 211
Little problem with Kazan's random bg generator
Thanks, I had them installed in C:/Applications/Kazan (I have so many progs, I keep most commercial ones in Program Files, and other stuff, like my fs2 MODing things, in Applications.

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Little problem with Kazan's random bg generator
um diamond... im not sure that's entirely accurate... *goes and pulls up code*

Code: [Select]

CRegistryManager reg;
reg.GetString("Software\\DMEN\\FS2UTIL", "InstalledAt",
 "C:\\Program Files\\kazan", CStemp, 1024); // defaults to the default install path

InstallPath = CStemp;



Code: [Select]

apstring Suns = InstallPath + "\\Suns.lst";
apstring Nebs = InstallPath + "\\Nebulae.lst";
ifstream Sin(Suns.c_str(), ios::nocreate);
ifstream Nin(Nebs.c_str(), ios::nocreate);


where ever the string value named InstalledAt in registry key HKEY_LOCAL_MACHINE\Software\DMEN\FS2UTIL points at is where they need to be


*considers updatting this util as well*
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline diamondgeezer

Little problem with Kazan's random bg generator
Huh. Well what I said before is based on my experiments. I've been in the same situation as Sol, and decided to check where the app wanted to install itself. I tried putting the files there and hey presto. All that coding stuff you just said means nada to me :D

 

Offline Krackers87

  • 158 crew
  • 29
Little problem with Kazan's random bg generator
where can some 1 get this background generator?
Put this in your profile if you know someone who is fighting, has survived, or has died from an awp no scope.

just like seventies goofballs
he's waiting on last calls
well listen method man
'cause if you leave on the last line
don't leave on the ground kind
born just a little too slow

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Little problem with Kazan's random bg generator
see signature - first url listed
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

  

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Little problem with Kazan's random bg generator
Hey Kaz, are you going to fix this so it doesn't pile up all the nebs at 0 and 180o? I have the code. I'll give it to you if you ask nicely :P
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.