Jurassic v2.0
-
@RogerCooper THANK YOU
The polygons.txt defines the separate zones to get player-colored (will have a single pixel black border), and the overlay reliefTiles can hide that hard edge border to give the appearance of fully wrapped irregular territories.
-
Frustration mounting. Carved up territories where they overlap map boundaries. All looking good with a few exceptions. The problem is no reliefTiles displaying. So, I purged the territory boundaries and just registered squares for each around centers. Just to get them out of the discussion, should an error there have some impact on the display not using the reliefTiles. All defined exactly like Jurassic, et al. Very simple map.properties file with a single player (alone) and game unit (nobody). The scroll works but no baseTiles or reliefTiles. All folders present and unzipped in downloadedMaps folder to get better debugging messages.
color.alone=ff9f40 color.Neutral=333333 color.Impassable=000000 units.scale=1.00 map.hasRelief=true map.scrollWrapX=true map.scrollWrapY=true map.showCapitolMarkers=false map.width=5120 map.height=5120Note: If neanderthal is zipped in the downloadedMaps folder then I get an error polygons.txt cannot be found, even though it's in the map folder. Extract the zip in place and error goes away. I've basically cloned jurassic to make neanderthal. It has to be something simple overlooked. Any insights?
-

-
@GREGOREK
Just checking you have View> Show Map Details TICKED -
@TheDog
it's checked and debug console empty.
I ordered a Ouija board from Amazon. -
This is irritating.
I turned off the surrounding territories by replacing their boundary with a simple square. Then did all, except for the two offending cells. Removed duplicate pixels in other loops. Reduced all cells by averaging every three pixels (with an integer snap) to get rid of 'staircases'. Same Result.

Dumped their data into a separate display. Look fine. Bright light, crosses, I dont know what else to try. Note: these loops are the first in each of the associated territory's polygons.txt definition. One houses its territory center. The other does not. Doesnt seem to matter.
The reliefTiles also continue to annoy. Sparse forum posts on the subject. I'm going to try finding TripleA cache files with Neanderthal in the name and deleting them. Maybe some legacy data preventing their display.
-
reliefTiles are now displaying.
I have once again brought shame to my family.still have the two territories not displaying all their parts as posted above.
-
Here's an interesting wrinkle. I have a memory fault. something I've done or omitted, is trashing memory.

I associated a territory with one of the players simply to mark it in the game, and suddenly a working territory cannot find the forest factory image which is used everywhere.

The gray box is the new anomaly. All forest territories have an invisible 16x16 factory. Nothing special about this one. Defined exactly like all the others. This error does not happen when the larger polygon loop described above is not assigned a player owner.
-
@GREGOREK
These version will ignore the missing image and then tell you which image is missing.2.7.15256
Technology tab split from players tab on to its own tab. (Really good for 1888a & Total World War as they have lots of Tech)
Shows any map missing icons as a placeholder square icon.
Shows on status bar the relationship(war, neutral, allied) of territories (Really good in FFA maps)
https://github.com/triplea-game/triplea/releases/tag/2.7.15256and
https://github.com/triplea-game/triplea/releases/tag/2.7.15570So upgrade.
-
@TheDog
Upgraded to latest. Now experiencing squint font with no way to change it. (?)
Problems persist. Factory Image is loaded and used everywhere. XML is script generated so any typo would appear everywhere.
Getting new error behaviors by simply adding owner to a territory suggests memory trashing somewhere.
I probably gutted too much out of Jurassic to make a bare-bones XML. Jurassic works with no change to management image files like factories. All carried over to Neanderthal.
I suspect a missing initializer in the XML.
Thanks for the help. I'll keep digging. -
Note: in this latest version, I dont see the debug window. Latest screen error:
NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth(java.awt.image.ImageObserver)" because "fromFile" is nullWho is this 'Observer'? and are they watching me now?!
-
@GREGOREK
Just checking you know about triplea.log
It is located here
C:\Users\%USERNAME%\tripleaThe console looks very similar to triplea.log
-
-
I will guess this maybe the Observer

-
@TheDog
Thank you for noting location of LOG file.
Observer is set to false.26343 13:08:20.484 [pool-4-thread-1] ERROR o.t.game.client.HeadedGameRunner - java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth(java.awt.image.ImageObserver)" because "fromFile" is null at games.strategy.triplea.image.TileImageFactory.loadUnblendedImage(TileImageFactory.java:220) at games.strategy.triplea.image.TileImageFactory.getImage(TileImageFactory.java:132) at games.strategy.triplea.image.TileImageFactory.getBaseTile(TileImageFactory.java:116) at games.strategy.triplea.ui.screen.drawable.BaseMapDrawable.getImage(BaseMapDrawable.java:17) at games.strategy.triplea.ui.screen.drawable.MapTileDrawable.draw(MapTileDrawable.java:37) at games.strategy.triplea.ui.screen.Tile.draw(Tile.java:72) at games.strategy.triplea.ui.screen.Tile.drawImage(Tile.java:57) at games.strategy.triplea.ui.panels.map.MapPanel.lambda$paint$9(MapPanel.java:779) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)The error seems to stem from a baseTile being null. All are good. Including reliefTIles. The map does have a width that aligns exactly to the 256x256 tile size, thus 20x20 tiles, name 0_0.png through 19_19.png. (5120x5120 map width/height in properties) The small map in upper right corner does not display right and bottom edge correctly.

The border slicing may have created zero area islands, island chains, and two-pixel spurs. Only noticed two candidates for that, but they display correctly. Get observer error, even with single polygon boxes around territory centers, hasRelief set to false (reliefTiles folder must be removed to not display reliefTiles). I'm going to recreate the XML script from scratch. Maybe missed an initializer, version, or other element that is not optional.
Note: map/smallMap.jpeg is 300x300. Is it supposed to be a particular scaled size of main map (which is 5120x5120)?
-
Just for a sanity check. Please load this and see if you get the same error.
http://john.gregorek.com/Games/neanderthal.zip -
-
I'm still hunting down the Observer-Null error, but higher forces need to get involved on this one.
Turning wrapX and wrapY off, the cell boundary display error is gone.

Turning wrapX on, the cells display properly but the small map drops the right edge.

Turning wrapY on, the cells get truncated and the small image drops the bottom edge.

The game provides 'island groups' in the polygons.txt display but was never tested for map border-crossings, wherein a territory can exist on opposite sides of the map and a single territory can exist at all four corners. It looks like a bounding-box oversight. For complete wrapXandY this needs to be addressed on the engine side.
-
-
@wc_sumpton THANK YOU. Checked for that vary thing, but stepped through using the Linux ImageViewer and it skips bad files. Strange it existed because the imageTiler was run a few times after first encounter with the error. I'll check the rest.
Observer error be gone. Uploaded a new neanderthal.zip. Wrapping display conflict still exists. Each loop in a polygons.txt territory definition should get its own display bounding box to determine if it is in the view.
I'm going to concentrate on the game development. Once done, I'll clean up the scripts for public consumption.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login

