dcfedor's blog

Resizing Woes, and OOO Next Week

dcfedor's picture

Hey Folks! Looks like this is officially a "difficult task" now, as screen aspect ratio and resizing rears it's head.

The old NEO Scavenger had a few graphics settings that could be changed: three different UI layout/aspect ratio choices, filtering, stretching, and fullscreen. Mobile, on the other hand, just has two: widescreen and 4:3. And what's more, mobile always uses the same layout on a given device, while desktop must switch at will based on window and monitor size.

Bingo

dcfedor's picture

Hey Folks! Think I managed to get mods working today! As you can see in the screenshot, we have a few of Kaaven's test mod items loaded into the starting cryo hex. Complete with stats and images!

The issue turned out to be the way the game was setting the sprite image for items (and other assets). It was sneakily still using OpenFL's Asset system, which fails when loading files added after compile time. A quick change to the code to funnel all image requests through a function designed to try Assets and then regular file loading did the trick.

We're Getting There...

dcfedor's picture

Hey Folks! Making progress on restoring mods today.

When I started this morning, the game would crash upon trying to load Kaaven's "Mod of Doom." Usually as a result of trying to load a null, blank, or invalid ID from the mod system. I think a bug was introduced in the remapping code when it was converted from Flash to Haxe, which basically caused all IDs to remap to "0" in mods. Which, apart from not loading the correct data, also caused an index out of range error in most arrays (which assume in-game IDs of 1 or greater).

Mod Parsing Speed Bump

dcfedor's picture

Hey Folks! Made a small amount of progress restoring mod support when I hit a pretty major speed bump: images.

Early on, I did some minor rewriting of the file structure to make modding work closer to the original Flash engine. OpenFL does some weird things with files when you try to load them through its asset manager. And one of these weird things is the inability to have two of the same filename in a single AssetPaths class.

Stuff's Gettin' Better Everyday

dcfedor's picture

Hey Folks! Hope everyone enjoyed their weekend. I'd say it was a pretty good one here. Nice weather. Nice dinners. A trip to the zoo. And a night where we were able to socialize with grown-ups. Yay!

Back in dev land, I found myself thinking of the today's title, a quote from the Postman, when prepping today's devlog. NEO Scavenger desktop version is getting better everyday.

Progress!

dcfedor's picture

Hey Folks! After nearly 2 days of banging my head against this map rendering issue, it appears to be fixed!

I think I basically had to try everything before I was able to get a hold of this bug. Rewriting image loaders, walking the code, debug output, wildly trying different inputs and outputs. Eventually, disabling huge swaths of the map renderer pointed me in the right direction. Because as it turned out, rendering one part of the map was short-circuiting the rendering of the rest.

Space Prototype Ruminations

dcfedor's picture

Hey Folks! Not much work done today, as it was spent more on administrative type tasks. However, one of the larger ones involved the overall vision of the space prototype.

Tile Rendering Still Broken, but Debugging Now Possible

dcfedor's picture

Happy Fourth of July, Folks! It's officially mock warzone here in the States, with explosions both near and far. I wonder how many actual gun battles are happening right now because nobody would notice?

Since we have a vacation coming up, I decided to work through this holiday and see if I could make headway on the hex rendering issue. Short version: I did not.

Image Caching Hell, but Progress

dcfedor's picture

Hey Folks! Been a bit of a rough day, as I wrestle with Asset caching in the engine in order to load assets.

Pretty much most of the day was spent trying and failing to get the game loading bitmaps into mod containers. In the PC version, the engine loads each mod into a separate data container, so when the game requests an asset by ID, it first checks which mod to get it from, then loads it from there.

And Now for Something Completely Different...

dcfedor's picture

Hey Folks! Hope everyone enjoyed their weekend. Ours was a little bittersweet as we watched Canada Day festivities on CBC live from afar. We miss our other home at times like these. I also suited up for vacuuming the 100+ year old crawlspace beneath our house. Darkness, cramped and hard to reach spaces, awkward equipment, and limited breathing. I imagine submarine mechanic work is worse, but not by much.