Skip to content

Commit

Permalink
add away3d to build macro + use cne away3d
Browse files Browse the repository at this point in the history
  • Loading branch information
Vortex2Oblivion committed Mar 23, 2024
1 parent 796d022 commit 3521a15
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
haxelib install flixel-addons
haxelib git linc_luajit https://github.com/Leather128/linc_luajit.git
haxelib git hscript-improved https://github.com/FNF-CNE-Devs/hscript-improved
haxelib install away3d
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
haxelib install systools
haxelib git scriptless-polymod https://github.com/swordcube/scriptless-polymod
haxelib install hxvlc
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
haxelib install flixel-screenshot-plugin
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate
haxelib git hxNoise https://github.com/whuop/hxNoise
haxelib install away3d
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
haxelib list
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
haxelib git hscript-improved https://github.com/FNF-CNE-Devs/hscript-improved
haxelib install HxWebView
haxelib git scriptless-polymod https://github.com/swordcube/scriptless-polymod
haxelib install away3d
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
haxelib git hxNoise https://github.com/whuop/hxNoise
haxelib install hxvlc
haxelib install openfl
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install away3d
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
haxelib install flixel-ui
haxelib install flixel-addons
haxelib git linc_luajit https://github.com/Leather128/linc_luajit.git
Expand Down
5 changes: 3 additions & 2 deletions Project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@
<haxelib name="flxanimate" />
<haxelib name="flixelTextureAtlas" />
<haxelib name="discord_rpc" if="desktop" />
<haxelib name="linc_luajit" if="LUA_ALLOWED" />
<haxelib name="linc_luajit" if="LUA_ALLOWED" version="git" url="https://github.com/Leather128/linc_luajit.git" />
<haxelib name="flixel-screenshot-plugin" if="SCREENSHOTS_ALLOWED"/>
<haxelib name="away3d" if="THREE_D_ALLOWED" />
<haxelib name="away3d" if="THREE_D_ALLOWED" version="git" url="https://github.com/FNF-CNE-Devs/away3d" />
<haxelib name="hxvlc" if="VIDEOS_ALLOWED" />
<haxelib name="HxWebView" if="windows" unless="linux || mac" />
<haxelib name="hxNoise"/>
Expand Down Expand Up @@ -155,6 +155,7 @@
<haxeflag name="--macro" value="include('flixel.ui')" />
<haxeflag name="--macro" value="include('flixel.util')" />
<haxeflag name="--macro" value="include('flx3D')" if="THREE_D_ALLOWED" />
<haxeflag name="--macro" value="include('away3d')" if="THREE_D_ALLOWED" />
<haxeflag name="--macro" value="include('hxvlc')" if="VIDEOS_ALLOWED" />
<haxeflag name="--macro" value="include('sys')" if="sys" unless="web" />

Expand Down
1 change: 1 addition & 0 deletions build/install_libraries.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ haxelib git scriptless-polymod https://github.com/swordcube/scriptless-polymod
haxelib git flixelTextureAtlas https://github.com/Smokey555/Flixel-TextureAtlas.git
haxelib git fnf-modcharting-tools https://github.com/Vortex2Oblivion/FNF-Modcharting-Tools
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
echo done
1 change: 1 addition & 0 deletions build/install_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ haxelib git scriptless-polymod https://github.com/swordcube/scriptless-polymod
haxelib git flixelTextureAtlas https://github.com/Smokey555/Flixel-TextureAtlas.git
haxelib git fnf-modcharting-tools https://github.com/Vortex2Oblivion/FNF-Modcharting-Tools
haxelib git flxanimate https://github.com/Dot-Stuff/flxanimate
haxelib git away3d https://github.com/FNF-CNE-Devs/away3d
echo done
1 change: 1 addition & 0 deletions source/modding/ModchartUtilities.hx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ class ModchartUtilities {
});

setLuaFunction("print", function(str:Dynamic = "") {
Sys.println(str);
Logs.debug(str);
});

Expand Down
2 changes: 1 addition & 1 deletion source/modding/scripts/languages/HScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class HScript
interp.variables.set(classes[classes.length - 1], enum_new);
}
else
trace(class_name + " isn't a valid class or enum!");
trace(class_name + " isn't a valid class or enum!", WARNING);
});

interp.variables.set("trace", function(value:Dynamic)
Expand Down
6 changes: 5 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2244,7 +2244,9 @@ class PlayState extends MusicBeatState {

if (!switchedStates) {
if (!(Conductor.songPosition > 20 && FlxG.sound.music.time < 20)) {
#if debug
trace('Resynced Vocals {Conductor.songPosition: ${Conductor.songPosition}, FlxG.sound.music.time: ${FlxG.sound.music.time} / ${FlxG.sound.music.length}}');
#end

vocals.pause();
FlxG.sound.music.pause();
Expand All @@ -2260,7 +2262,9 @@ class PlayState extends MusicBeatState {
vocals.play();
} else {
while (Conductor.songPosition > 20 && FlxG.sound.music.time < 20) {
#if debug
trace('Resynced Vocals {Conductor.songPosition: ${Conductor.songPosition}, FlxG.sound.music.time: ${FlxG.sound.music.time} / ${FlxG.sound.music.length}}');
#end

FlxG.sound.music.time = Conductor.songPosition;
vocals.time = Conductor.songPosition;
Expand Down Expand Up @@ -2470,7 +2474,7 @@ class PlayState extends MusicBeatState {
{
var midPos = dad.getMainCharacter().getMidpoint();

if(utilities.Options.getData("cameraTracksDirections") && dad.animation.curAnim != null)
if(Options.getData("cameraTracksDirections") && dad.animation.curAnim != null)
{
switch(dad.animation.curAnim.name.toLowerCase())
{
Expand Down

0 comments on commit 3521a15

Please sign in to comment.