Possible bug with --buildmap

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Fabrizio
Posts: 14
Joined: Thu May 14, 2020 1:34 pm

Possible bug with --buildmap

Post by Fabrizio »

Hi again,
I think I hit a small bug with the --buildmap parameter.
Setup: Win98SE, Exult 1.0 and Exult 1.1 7-3-2003 CVS.

Exult is installed in the folder 'Exult' and SI and Bg are in two separate folders, which are subfolders of Exult.
Exult.cfg reflects this configuration and both the games run fine.

Problem appears when I try to generate a map.
If I start "Exult --bg --buildmap 2" from the Exult folder, then nothing happens and stderr.txt says that it's impossibile to set screen resolution at 2048x2048 at 8bpp.

But if I move to the Bg (or SI) folder and type:
"..\exult --bg --buildmap 2", then it works fine.

It seems to me that the program is unable to find the data map when started from the upper folder AND Bg and Si are subfolders. Happens both with 1.0 and the above 1.1 snapshot.

BTW, which is the order the PCX files are generated (i.e. the order the map is scanned)? Top/Bottom/Left/Right?


Ciao

Fabrizio
Ciao

Fabrizio
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by wjp »

Hm, do you maybe use fullscreen mode?

I think it scans the map column by column (each column from top to bottom), left to right.
Fabrizio
Posts: 14
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by Fabrizio »

Hi wjp,
yep, full screen mode.

> I think it scans the map column by column (each column from top to
> bottom), left to right.

Great, thanks, so I will be able to figure out where to find the map I need.

Thanks!
Ciao

Fabrizio
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by wjp »

You might've guessed it from my last post, but disabling fullscreen mode should fix the problem. :-)

I'll probably change buildmap to ignore the fullscreen option when I get home tonight.
Fabrizio
Posts: 14
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by Fabrizio »

>You might've guessed it from my last post, but disabling fullscreen mode >should fix the problem. :-)

I had that feeling :-)

>I'll probably change buildmap to ignore the fullscreen option when I get >home tonight.

Great!
And neverending thanks for this option which will save me _hours_ of hand drawn mapping!
Ciao

Fabrizio
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by Dominus »

Sorry to be nitpicking again (just to point out to people that the documentation has its usefulness):
http://exult.info/docs.php#command_line :

--buildmap x
x = 0 shows all roofs, x = 2 pops them all.
You have to specify the game first (Example: exult --bg --buildmap 0).
Builds the map of the game specified. The map is huge and in pcx format, you will need a lot of ram to even look at this map once it is build (and even that requires a lot of patience)
Exult is required to be run in windowed mode and you get the best map if you started a new game before you build the map


But if Willem makes the change from above it would be best.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Fabrizio
Posts: 14
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by Fabrizio »

>Sorry to be nitpicking again (just to point out to people that the >documentation has its usefulness):

Me blushes.... You're perfectly right, I completely missed it.
To be _absolutely_ pedantic (and to partially excuse myself!) I must say that I checked the program line options looking at stderr.txt generated with exult -h, and here it lists only the option --buildmap without that additional useful line about the windowed mode (at least with latest 1.1 snapshot)

Sorry :-(
Ciao

Fabrizio
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by wjp »

Don't worry about it :-)

This fullscreen stuff is indeed kind of confusing and just somewhat of a bug in buildmap.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by wjp »

Fixed now.
Skutarth

Re: Possible bug with --buildmap

Post by Skutarth »

Erm, how do you make it skip all the beginning scripts?
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: Possible bug with --buildmap

Post by wjp »

Like the ship appearing in SI? If you don't explicitly save after starting a new game, the currently saved game state is the one from before the scripts.

(As you can see when you 'Journey Onward')
Locked