View Single Post
froducish

JCF Member

Joined: Jan 1970

Posts: 8

froducish has disabled reputation

Jun 12, 2025, 05:31 AM
froducish is offline
Reply With Quote
Using the jjLAYER constructor to copy eventually causes access violation in Rivellon

Make a mutator just with this snippet:

Code:
array<jjLAYER@> layerOrderings;
void onLevelBegin() {
	layerOrderings = jjLayerOrderGet();
	for (uint i = 0; i < layerOrderings.length(); i++) {
		jjLAYER@ copy = jjLAYER(layerOrderings[i]);
	}
}
Cycle to ezrivellon.j2l (https://www.jazz2online.com/downloads/9443/rivellon/) with the mutator on several times until access violation occurs. Seems to happen at the same instruction address each time it happens: https://i.imgur.com/UHq6Brf.png

Tested with JJ2+ v6.0a in Windows 10.