Skip to content

MEGAFIX

Choose a tag to compare

@kroryan kroryan released this 19 May 08:19
· 6 commits to master since this release
8595bbc

Changes Made to Fix Compatibility Issues
The following changes were implemented to resolve compatibility problems with the current versions of Lime and OpenFL:

Dependency Version Updates
The library versions in the project.xml file were updated:

Lime updated to version 8.0.0 (previously 7.8.0)

OpenFL updated to version 9.2.0 (previously 9.0.2)

Data Type Issues Resolution
The main fixed errors were related to incompatibilities between data types:

lime.utils.Float32Array, lime.utils.Int32Array, and lime.utils.UInt32Array must now be lime.utils.DataPointer in certain contexts

openfl.utils.ByteArray should be lime.utils.Bytes or lime.utils.BytePointer depending on the context

Obsolete references to lime.math.ColorMatrix and lime.math.Matrix4 now use lime.utils.ArrayBufferView

Syntax Updates
Most warnings (which did not prevent compilation) were related to deprecated syntax:

@:enum abstract is deprecated and should be replaced with enum abstract

@:extern is deprecated and should be replaced with extern
Although these warnings appear in the library code and not the project code, they do not affect functionality.

Fixes in WebGL/OpenGL APIs
Types in the WebGL/OpenGL APIs were corrected to be compatible with the new versions:

Adjustments in WebGL2RenderContext and NativeOpenGLRenderContext to use the correct types in function arguments

Using the Generator
Main Interface: When running the application, you will see an interface where you can select parameters for your city.

City Generation:

Select the city size

Click generate to create a new random city

Exploration:

You can zoom using the mouse wheel

Drag to move around the map

The interface includes buttons to generate new cities or modify parameters

Common Troubleshooting
Error Installing Lime or OpenFL
If you encounter errors during Lime or OpenFL installation, try:

bash
Copy
Edit
haxelib run lime setup -y
haxelib run openfl setup -y
Compilation Errors
If you get errors related to types, verify you are using the correct versions of Lime (8.0.0) and OpenFL (9.2.0) specified in this README.

Runtime Errors
If the application compiles but fails to run, it could be due to:

Missing resources in the Assets folder

Browser incompatibilities (try Chrome if using HTML5)

Problems with your system's WebGL configuration

Additional Technical Notes
The errors about lime.utils.X should be lime.utils.DataPointer relate to changes in the Lime API where specific typed arrays must now be treated as generic data pointers.

Warnings about @:enum abstract and @:extern are syntax changes in Haxe that do not affect functionality but indicate libraries are using deprecated syntax.

The default port for HTML5 mode execution is 3000, but it may change if that port is already in use.