mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-26 01:28:16 -05:00
Platform-specific fixes for HTML5 and MacOS
This commit is contained in:
parent
1315f7e182
commit
9a2f235bed
5 changed files with 43 additions and 22 deletions
|
@ -1,6 +1,12 @@
|
||||||
# Troubleshooting Common Issues
|
# Troubleshooting Common Issues
|
||||||
|
|
||||||
- Weird macro error with a very tall call stack: Restart Visual Studio Code
|
- Weird macro error with a very tall call stack: Restart Visual Studio Code
|
||||||
|
- NOTE: This is caused by Polymod somewhere, and seems to only occur when there is another compile error somewhere in the program. There is a bounty up for it.
|
||||||
|
|
||||||
- `Get Thread Context Failed`: Turn off other expensive applications while building
|
- `Get Thread Context Failed`: Turn off other expensive applications while building
|
||||||
|
|
||||||
- `Type not found: T1`: This is thrown by `json2object`, make sure the data type of `@:default` is correct.
|
- `Type not found: T1`: This is thrown by `json2object`, make sure the data type of `@:default` is correct.
|
||||||
- NOTE: `flixel.util.typeLimit.OneOfTwo` isn't supported.
|
- NOTE: `flixel.util.typeLimit.OneOfTwo` isn't supported.
|
||||||
|
|
||||||
|
- `Class lists not properly generated. Try cleaning out your export folder, restarting your IDE, and rebuilding your project.`
|
||||||
|
- This is a bug specific to HTML5. Simply perform the steps listed (don't forget to restart the IDE too).
|
||||||
|
|
4
hmm.json
4
hmm.json
|
@ -11,7 +11,7 @@
|
||||||
"name": "flixel",
|
"name": "flixel",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "8437a86aa5dafdb3f5dcb91d212cb10a4ee6e53b",
|
"ref": "da04cbda49a4c5eebe93fb61296dbaf4f0f1b556",
|
||||||
"url": "https://github.com/EliteMasterEric/flixel"
|
"url": "https://github.com/EliteMasterEric/flixel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
"name": "polymod",
|
"name": "polymod",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "e8a07b81e3bc535238ad8649e38f5d43c46f1b65",
|
"ref": "41aea83dbc267234b301434553ce8c17742b8ab7",
|
||||||
"url": "https://github.com/larsiusprime/polymod"
|
"url": "https://github.com/larsiusprime/polymod"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,12 +38,19 @@ class CapsuleText extends FlxSpriteGroup
|
||||||
|
|
||||||
function set_text(value:String):String
|
function set_text(value:String):String
|
||||||
{
|
{
|
||||||
|
if (value == null) return value;
|
||||||
|
if (blurredText == null || whiteText == null)
|
||||||
|
{
|
||||||
|
trace('WARN: Capsule not initialized properly');
|
||||||
|
return text = value;
|
||||||
|
}
|
||||||
|
|
||||||
blurredText.text = value;
|
blurredText.text = value;
|
||||||
whiteText.text = value;
|
whiteText.text = value;
|
||||||
whiteText.textField.filters = [
|
whiteText.textField.filters = [
|
||||||
new openfl.filters.GlowFilter(0x00ccff, 1, 5, 5, 210, BitmapFilterQuality.MEDIUM),
|
new openfl.filters.GlowFilter(0x00ccff, 1, 5, 5, 210, BitmapFilterQuality.MEDIUM),
|
||||||
// new openfl.filters.BlurFilter(5, 5, BitmapFilterQuality.LOW)
|
// new openfl.filters.BlurFilter(5, 5, BitmapFilterQuality.LOW)
|
||||||
];
|
];
|
||||||
return value;
|
return text = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -998,6 +998,11 @@ class FreeplayState extends MusicBeatSubState
|
||||||
PlayStatePlaylist.isStoryMode = false;
|
PlayStatePlaylist.isStoryMode = false;
|
||||||
|
|
||||||
var targetSong:Song = SongRegistry.instance.fetchEntry(cap.songData.songId);
|
var targetSong:Song = SongRegistry.instance.fetchEntry(cap.songData.songId);
|
||||||
|
if (targetSong == null)
|
||||||
|
{
|
||||||
|
FlxG.log.warn('WARN: could not find song with id (${cap.songData.songId})');
|
||||||
|
return;
|
||||||
|
}
|
||||||
var targetDifficulty:String = currentDifficulty;
|
var targetDifficulty:String = currentDifficulty;
|
||||||
|
|
||||||
// TODO: Implement Pico into the interface properly.
|
// TODO: Implement Pico into the interface properly.
|
||||||
|
|
|
@ -1,24 +1,25 @@
|
||||||
package funkin.ui.transition;
|
package funkin.ui.transition;
|
||||||
|
|
||||||
import funkin.play.PlayStatePlaylist;
|
|
||||||
import flixel.FlxSprite;
|
import flixel.FlxSprite;
|
||||||
import flixel.FlxState;
|
import flixel.FlxState;
|
||||||
import funkin.graphics.shaders.ScreenWipeShader;
|
|
||||||
import flixel.math.FlxMath;
|
import flixel.math.FlxMath;
|
||||||
|
import flixel.tweens.FlxEase;
|
||||||
|
import flixel.tweens.FlxTween;
|
||||||
import flixel.util.FlxTimer;
|
import flixel.util.FlxTimer;
|
||||||
|
import funkin.graphics.shaders.ScreenWipeShader;
|
||||||
import funkin.play.PlayState;
|
import funkin.play.PlayState;
|
||||||
|
import funkin.play.PlayStatePlaylist;
|
||||||
|
import funkin.play.song.Song.SongDifficulty;
|
||||||
|
import funkin.ui.mainmenu.MainMenuState;
|
||||||
|
import funkin.ui.MusicBeatState;
|
||||||
import haxe.io.Path;
|
import haxe.io.Path;
|
||||||
import lime.app.Future;
|
import lime.app.Future;
|
||||||
import flixel.tweens.FlxTween;
|
|
||||||
import funkin.ui.MusicBeatState;
|
|
||||||
import lime.app.Promise;
|
import lime.app.Promise;
|
||||||
import lime.utils.AssetLibrary;
|
import lime.utils.AssetLibrary;
|
||||||
import flixel.tweens.FlxEase;
|
|
||||||
import lime.utils.AssetManifest;
|
import lime.utils.AssetManifest;
|
||||||
import lime.utils.Assets as LimeAssets;
|
import lime.utils.Assets as LimeAssets;
|
||||||
import openfl.utils.Assets;
|
|
||||||
import funkin.ui.mainmenu.MainMenuState;
|
|
||||||
import openfl.filters.ShaderFilter;
|
import openfl.filters.ShaderFilter;
|
||||||
|
import openfl.utils.Assets;
|
||||||
|
|
||||||
class LoadingState extends MusicBeatState
|
class LoadingState extends MusicBeatState
|
||||||
{
|
{
|
||||||
|
@ -59,18 +60,20 @@ class LoadingState extends MusicBeatState
|
||||||
initSongsManifest().onComplete(function(lib) {
|
initSongsManifest().onComplete(function(lib) {
|
||||||
callbacks = new MultiCallback(onLoad);
|
callbacks = new MultiCallback(onLoad);
|
||||||
var introComplete = callbacks.add('introComplete');
|
var introComplete = callbacks.add('introComplete');
|
||||||
// checkLoadSong(getSongPath());
|
|
||||||
// if (PlayState.currentSong.needsVoices)
|
if (Std.isOfType(target, PlayState))
|
||||||
// {
|
{
|
||||||
// var files = PlayState.currentSong.voiceList;
|
var targetPlayState:PlayState = cast target;
|
||||||
//
|
var targetChart:SongDifficulty = targetPlayState.currentChart;
|
||||||
// if (files == null) files = ['']; // loads with no file name assumption, to load 'Voices.ogg' or whatev normally
|
var instPath:String = Paths.inst(targetChart.song.id);
|
||||||
//
|
var voicesPaths:Array<String> = targetChart.buildVoiceList();
|
||||||
// for (sndFile in files)
|
|
||||||
// {
|
checkLoadSong(instPath);
|
||||||
// checkLoadSong(getVocalPath(sndFile));
|
for (voicePath in voicesPaths)
|
||||||
// }
|
{
|
||||||
// }
|
checkLoadSong(voicePath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
checkLibrary('shared');
|
checkLibrary('shared');
|
||||||
checkLibrary(PlayStatePlaylist.campaignId);
|
checkLibrary(PlayStatePlaylist.campaignId);
|
||||||
|
|
Loading…
Reference in a new issue