I have no Idea what I'm doing

I have no Idea what I'm doing

Return to topic list

Tue Aug 9 19:18:31 2022   by   Carson T.H.
Hi there, I'm not a programmer, and don't have any experience with command line operations, beyond some very basic stuff.

My friends and I are working on a fictional world and are looking for a decent world map generator. We already have a map that we'd like to use, and I saw that it's possible to use the match feature to generate an approximate version of our current map using the planet generator. I know it'll only be approximate at best, and that's really perfectly fine as the map we're using now is little more than a bunch of potatoes with very little detail XD.

The problem is I can't figure out how to run the zip at all, I mean I've extracted it and the version of windows I have has Powershell on it already I just can't figure out what I'm suppose to do to get it to run. I managed to run the planet.exe in powershell but I just got the scrolling wall of random characters just like what happens when I try to run the exe by itself, and yes I know I'm not suppose to do that but I'm getting the same result even in powershell, and I've no idea how to compile it, if that's even necessary in windows.

I know I'm asking a lot probably but I'm a total noob at this and I'm not afraid to say it, and ask for a bit of help if you're willing to.
 
Wed Aug 10 09:47:34 2022   by   Torben
There is a manual in the zip file that explains how to use the command-line version.  You get the random characters (that are actually the encoding of a .bmp file) as output if you do not specify an output file using the -o filename option.  The manual also specifies the format for the input to the match option.
 
Wed Aug 10 21:04:20 2022   by   Carson T.H.
Alright, I've got it working for generating random maps from seeds, but I'm running into the issue of proper format.

I searched through previous post here and found this example that you posted in 2018 "planet -s 0.11 -w 800 -h 400 -pq -M 0.1 -o test.bmp < earth.map"

I tried that and I got this error

At line:1 char:55
+ .\planet -s 0.11 -w 800 -h 400 -pq -M 0.1 -o test.bmp < earth.map
+                                                     
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported

I have no idea what that means beyond that I'm clearly doing something wrong
 
Wed Aug 10 21:10:52 2022   by   Carson T.H.
Alright, I've got it working for generating random maps from seeds, but I'm running into the issue of proper format.

I searched through previous post here and found this example that you posted in 2018 "planet -s 0.11 -w 800 -h 400 -pq -M 0.1 -o test.bmp < earth.map"

I tried that and I got this error

At line:1 char:55
+ .\planet -s 0.11 -w 800 -h 400 -pq -M 0.1 -o test.bmp < earth.map
+                                                     
The '<' operator is reserved for future use.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RedirectionNotSupported

I have no idea what that means beyond that I'm clearly doing something wrong
 
Thu Aug 11 09:18:16 2022   by   Carson T.H.
Well I figured out what the error was, it was powershell not letting me use " < " so I switched to cmd and now it accepts it, but I still can't get the match feature to work. The exe pops up but nothing happens like it's frozen. I have generated several random seed maps thus far and that part of the software seems to working great but match just doesn't seem to want to cooperate with me.

I have tried all of these plus several of my own and the program seems to freeze on each one.

.\planet.exe -X -s 0.3 -m 1.0 -L 0.0 -l 0.0 -i 0.005 -n -E -z -pq -w 2000 -h 1000  -M 0.1 -pf -o p5.bmp < earth.map

.\planet.exe -s 0.123 -w 800 -h 400 -pM -b -M 0.2 -o outfile.bmp < earth.map

.\planet.exe -C OlssonLight.col -pq -s 0.3915554 -M 0.03 -i -0.02 -w 4000 -h 2000 -o earth.bmp < earth.map

Perhaps I'm just not understanding the terminology in the manual as I'm a complete noob at this stuff.
 
Thu Aug 11 10:10:14 2022   by   Torben
The "<" operator is defined in Linux and MacOS, but it seems it is not in Windows.

You can try the following instead:

cat earth.map > .\planet.exe s 0.123 -w 800 -h 400 -pM -b -M 0.2 -o outfile.bmp < earth.map

or similar
 
Thu Aug 11 17:18:30 2022   by   Carson T.H.
Alright, over the last day or so I've learned more about cmd and powershell than I ever wished or wanted XD

However, I finally got the command to run by starting Powershell in Administrator Mode. This starts Powershell in the system 32 directory by default so I had to redirect to :C. I did this by typing in "Set-Location -Path .. -PassThru" (without the quotes) Twice until I was in the :C route drive then I  navigated to "C:\users\username\desktop\planet>". Once there I tried your command line, and it didn't work... BUT!

I replaced the " > " with " | " after a bit more research on the webs and removed the "< earth.map" completely from the end of the line.

I then tried the new line
"cat earth.map | .\planet.exe -s 0.123 -w 800 -h 400 -pM -b -M 0.2 -o outfile.bmp" (Again without the quotes) and it works! I've just generated my first earth map using the windows powershell interface!
 
Thu Aug 11 17:24:01 2022   by   Carson T.H.
Also the reason why I had to start in administrator mode is because powershell would yell at me about elevation rights, which is windows speak for admin privileges.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list