| View previous topic :: View next topic |
| Author |
Message |
Zogu Lux Newbie

Joined: 16 Jan 2005 Posts: 48 Location: Le Bic / Rimouski, QC, Canada
|
Posted: Sun Jan 16, 2005 1:48 am Post subject: Maximum map dimensions? |
|
|
Hi!
I have just created a map and it doesn't render very well.
What are the maximum recommended dimensions for a map? My map is 980x700. My screen resolution is 1024x768.
The upper part of the map gets cut, even though I get a vertical scrollbar on the right. I can't scroll to the top of my map!
Also, my background image, which I used at design time to draw the countries, is not displayed correctly; it is now "pushed" about 20 pixels down. Needless to say, the result is quite messy.
At least my map is playable, despite the fact it looks so bad!!!
It's sad that I can't scale down the whole map by, say, 15%. This would eliminate the problems I experience right now (map too large). Maybe someone could write a little PHP or Perl script that can scale up/down map elements. Maybe I should write it???
Also, I had yet another problem -- this time it's probably a bug in the Map Editor. Sometimes, when I save my map, the "additional lines" (i.e. the <line> elements) aren't saved at all; they vanish & don't show up in the XML. I think it's caused by the presence of the <above> tag but i'm not 100% certain.
Thanks,
-H.D.
PS: I use Lux version 4.52 |
|
| Back to top |
|
 |
Preacherman Semi-Holy Priest

Joined: 24 Feb 2004 Posts: 4513 Location: Sweden (capital of Denmark, an island in Norway, southern Europe)
|
Posted: Sun Jan 16, 2005 6:43 am Post subject: |
|
|
Hi Zogu,
There are possibly a couple of bugs in the map editor, it is a very new feature to Lux and isn't fully implemented yet. The best thing you can do is to always take the saved map file and go through it by hand in any decent text editor to check for the most common errors.
I never used the map editor, but just took a quick look and can't see anywhere to set the map dimensions, so it might be worth checking these manually in the map file - it will be at the top, like this :
| Code: | <width>850</width>
<height>600</height> |
There are bigger maps out there than 980 x 700, so size in itself isn't an issue. If you continue to have any problems, post the XML code here in the forums and someone will take a look at it and maybe spot the error.
Lastly, it is possible to save the entire map as a scaled percentage - when you have it open in Lux, use Board -> Save Resized Board to scale it the way you want
HTH |
|
| Back to top |
|
 |
Zogu Lux Newbie

Joined: 16 Jan 2005 Posts: 48 Location: Le Bic / Rimouski, QC, Canada
|
Posted: Mon Jan 17, 2005 12:18 am Post subject: |
|
|
OK... my map dimensions were smaller than the countries' max coordinates... and the background image wasn't the right size! Wow.
But I still have the editor bug which wipes out "additional lines" when saving (and it happens every time it upgrades an existing map file).
Thanks for the help.
My map will now be ready for beta testing and (maybe) upload. |
|
| Back to top |
|
 |
dustin Lux Admin


Joined: 15 May 2003 Posts: 9134 Location: Vancouver
|
Posted: Mon Jan 17, 2005 10:44 am Post subject: |
|
|
| There is also a menu option when playing the map you can use. Board->Save Resized Map to make a version of it that is a different size. |
|
| Back to top |
|
 |
Preacherman Semi-Holy Priest

Joined: 24 Feb 2004 Posts: 4513 Location: Sweden (capital of Denmark, an island in Norway, southern Europe)
|
Posted: Mon Jan 17, 2005 10:48 am Post subject: |
|
|
∞ wonders if Dustin actually reads previous posts ∞
 |
|
| Back to top |
|
 |
mbauer Not A Truck

Joined: 28 Jun 2004 Posts: 3948 Location: Tallahassee
|
Posted: Mon Jan 17, 2005 10:50 am Post subject: |
|
|
| Preacherman wrote: | | Lastly, it is possible to save the entire map as a scaled percentage - when you have it open in Lux, use Board -> Save Resized Board to scale it the way you want |
| dustin wrote: | | There is also a menu option when playing the map you can use. Board->Save Resized Map to make a version of it that is a different size. |
Apparently all that traveling in Europe has, shall we say, "affected" Dustin.
What are you guys doing to him over there?
mbauer |
|
| Back to top |
|
 |
DSMyers1 Lux Newbie

Joined: 28 Jan 2005 Posts: 58 Location: Where the winds come sweeping down the plains
|
Posted: Fri Jan 28, 2005 10:36 pm Post subject: |
|
|
| I was wondering how the game will behave if I use a very large map, i. e. something on the order of 3000x1500. Is there code written to handle this well? To be more precise, how does the game handle scrolling? |
|
| Back to top |
|
 |
mbauer Not A Truck

Joined: 28 Jun 2004 Posts: 3948 Location: Tallahassee
|
Posted: Fri Jan 28, 2005 10:45 pm Post subject: |
|
|
| DSMyers1 wrote: | | I was wondering how the game will behave if I use a very large map, i. e. something on the order of 3000x1500. Is there code written to handle this well? To be more precise, how does the game handle scrolling? |
The more countries there are the slower it will go. This typically isn't a problem if you stay in the range of normal screen dimensions. So 3000X1500 will probably push the limits quite a bit. I have found that most people don't like maps that force them to have a scroll bar, so be wary of getting out of hand if you care about the maps acceptance in the lux community. But to answer your question the scrolling works fine and the lux app should handle a map that large just fine, a little slower than other maps maybe, but it should work.
mbauer |
|
| Back to top |
|
 |
DSMyers1 Lux Newbie

Joined: 28 Jan 2005 Posts: 58 Location: Where the winds come sweeping down the plains
|
Posted: Sat Jan 29, 2005 9:17 am Post subject: |
|
|
Okay good...The map that large would be so my Dad, who plays the original Risk on computer alot, can be able to see the countries without his reading glasses....
 |
|
| Back to top |
|
 |
BarStar Met Dustin

Joined: 20 Dec 2004 Posts: 1914 Location: Chicago
|
Posted: Sat Jan 29, 2005 9:54 am Post subject: |
|
|
Oh just GREAT!!!!!!!! Now you tell me I can resize a map after i totally created a new mini map of my Classic Lux board from scratch....ugh.
Grumble, grumble... sigh. |
|
| Back to top |
|
 |
dustin Lux Admin


Joined: 15 May 2003 Posts: 9134 Location: Vancouver
|
Posted: Sun Jan 30, 2005 8:28 am Post subject: |
|
|
| Scrollbar appear when a map is too big for the screen. |
|
| Back to top |
|
 |
|