restarting again
i hate git
This commit is contained in:
+2
-2
@@ -71,11 +71,11 @@ _**QOL = Quality of Life**_
|
||||
- Characters are located in `data/weeks/characters`.
|
||||
- Weeks are located in `data/weeks/weeks/`
|
||||
- If you need to rearrange the weeks in-game, you can use the `data/weeks/weeks.txt` file.
|
||||
- Editors for Charts and Characters (Stage coming soon)
|
||||
- Editors for Charts and Characters
|
||||
- Undos/Redos supported
|
||||
- Warning on closing unsaved work
|
||||
- Clean UI (for ocd freaks)
|
||||
- Mature Chart editor (Character editor rework soon)
|
||||
- Mature Chart editor
|
||||
- Features not found in other editors!
|
||||
- Every single state & substate can be modified via HScript (`data/states/StateName.hx`)
|
||||
- **Instances launched via `lime test windows` will automatically use assets from source.**
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# THIS FILE ISN'T NECESSARY,
|
||||
# BUT YOU CAN USE IT TO SORT AND WHITELIST FREEPLAY SONGS
|
||||
|
||||
test
|
||||
tutorial
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# THIS FILE ISN'T NECESSARY,
|
||||
# BUT YOU CAN USE IT TO SORT AND WHITELIST GAME MODES
|
||||
|
||||
solo
|
||||
opponent
|
||||
coop
|
||||
coop-switched
|
||||
botplay
|
||||
@@ -1,5 +1,5 @@
|
||||
# THIS FILE ISN'T NECESSARY,
|
||||
# BUT YOU CAN USE IT TO SORT WEEKS
|
||||
# BUT YOU CAN USE IT TO SORT AND WHITELIST WEEKS
|
||||
|
||||
tutorial
|
||||
week1
|
||||
@@ -18,6 +18,7 @@
|
||||
<git name="hxdiscord_rpc" url="https://github.com/CodenameCrew/cne-hxdiscord_rpc" skipDeps="true" />
|
||||
<lib name="funkin-modchart" version="1.2.4" skipDeps="true" />
|
||||
<lib name="hxvlc" version="1.9.3" skipDeps="true" />
|
||||
<git name="bin-serializer" url="https://github.com/CodenameCrew/bin-serializer" />
|
||||
|
||||
<!-- Documentation and other features -->
|
||||
<git name="away3d" url="https://github.com/CodenameCrew/away3d" />
|
||||
|
||||
+6
-8
@@ -3,19 +3,16 @@
|
||||
<!-- _________________________ Application Settings _________________________ -->
|
||||
<app
|
||||
title="Friday Night Funkin' - Codename Engine" main="funkin.backend.system.Main"
|
||||
file="CodenameEngine" packageName="com.yoshman29.codenameengine"
|
||||
package="com.yoshman29.codenameengine"
|
||||
version="1.0.1" company="Yoshman29" />
|
||||
file="CodenameEngine" packageName="com.codenamecrew.codenameengine"
|
||||
package="com.codenamecrew.codenameengine"
|
||||
version="1.0.1" company="CodenameCrew" />
|
||||
|
||||
<!--
|
||||
CHANGE THE SAVE PATH & NAME FOR YOUR MOD HERE!
|
||||
CHANGE THE SAVE PATH & NAME FOR YOUR HARDCODED MOD HERE!
|
||||
-->
|
||||
<haxedef name="SAVE_PATH" value="CodenameEngine"/>
|
||||
<haxedef name="SAVE_PATH" value="CodenameCrew/CodenameEngine"/>
|
||||
<haxedef name="SAVE_NAME" value="save-default"/>
|
||||
|
||||
<haxedef name="SAVE_OPTIONS_PATH" value="CodenameEngine"/>
|
||||
<haxedef name="SAVE_OPTIONS_NAME" value="options"/>
|
||||
|
||||
<!--Switch Export with Unique ApplicationID and Icon-->
|
||||
<set name="APP_ID" value="0x0100f6c013bbc000" />
|
||||
|
||||
@@ -131,6 +128,7 @@
|
||||
<haxelib name="away3d" if="THREE_D_SUPPORT" />
|
||||
<haxelib name="format" />
|
||||
<haxelib name="flxanimate" />
|
||||
<haxelib name="bin-serializer" />
|
||||
<haxelib name="nape-haxe4" if="NAPE_ENABLED"/>
|
||||
|
||||
<haxelib name="hscript-improved" />
|
||||
|
||||
@@ -13,7 +13,7 @@ import lime.utils.AssetType;
|
||||
/**
|
||||
* A class that reads the `flags.ini` file, allowing to read settable Flags (customs too).
|
||||
*/
|
||||
@:build(funkin.backend.system.macros.FlagMacro.build())
|
||||
@:build(funkin.backend.system.macros.FlagMacro.build("onReset"))
|
||||
class Flags {
|
||||
public static var overridenFlags:Map<String, Bool> = [];
|
||||
|
||||
@@ -157,7 +157,7 @@ class Flags {
|
||||
public static var DEFAULT_HUD_ZOOM_LERP:Float = 0.05;
|
||||
|
||||
public static var USE_LEGACY_ZOOM_FACTOR:Null<Bool> = null;
|
||||
|
||||
|
||||
// Font configuration
|
||||
public static var DEFAULT_FONT:String = "vcr.ttf";
|
||||
public static var DEFAULT_FONT_SIZE:Int = 16;
|
||||
@@ -312,6 +312,11 @@ class Flags {
|
||||
if (SUSTAINS_AS_ONE_NOTE == null) SUSTAINS_AS_ONE_NOTE = MOD_API_VERSION >= 2;
|
||||
}
|
||||
|
||||
private static function onReset() {
|
||||
var currentModFolder = ModsFolder.currentModFolder;
|
||||
if (currentModFolder != null) SAVE_NAME = currentModFolder;
|
||||
}
|
||||
|
||||
public static function loadFromDatas(datas:Array<String>):Map<String, String> {
|
||||
var flags:Map<String, String> = [];
|
||||
for (data in datas) {
|
||||
|
||||
@@ -19,7 +19,7 @@ class FlagMacro {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function build():Array<Field> {
|
||||
public static function build(resetCallback:String):Array<Field> {
|
||||
var fields = Context.getBuildFields();
|
||||
|
||||
var clRef = Context.getLocalClass();
|
||||
@@ -248,7 +248,10 @@ class FlagMacro {
|
||||
access: [APublic, AStatic],
|
||||
kind: FFun({
|
||||
args: [],
|
||||
expr: macro $b{resetExprs},
|
||||
expr: macro {
|
||||
$b{resetExprs};
|
||||
$i{resetCallback}();
|
||||
},
|
||||
ret: macro: Void
|
||||
}),
|
||||
pos: Context.currentPos(),
|
||||
|
||||
@@ -342,10 +342,17 @@ class StoryWeeklist {
|
||||
public function new() {}
|
||||
|
||||
public function getWeeksFromSource(source:funkin.backend.assets.AssetSource, useTxt:Bool = true, loadCharactersData:Bool = true) {
|
||||
var path:String = Paths.txt('weeks/weeks');
|
||||
var weeksFound:Array<String> = useTxt && Paths.assetsTree.existsSpecific(path, "TEXT", source) ? CoolUtil.coolTextFile(path) :
|
||||
[for (c in Paths.getFolderContent('data/weeks/weeks/', false, source)) if (Path.extension(c).toLowerCase() == "xml") Path.withoutExtension(c)];
|
||||
|
||||
var weeksFound:Array<String> = null;
|
||||
if (useTxt) {
|
||||
var oldPath:String = Paths.txt('weeks/weeks');
|
||||
var newPath:String = Paths.txt('config/weeks');
|
||||
if (Paths.assetsTree.existsSpecific(newPath, "TEXT", source)) weeksFound = CoolUtil.coolTextFile(newPath);
|
||||
else if (Paths.assetsTree.existsSpecific(oldPath, "TEXT", source)) {
|
||||
Logs.warn("data/weeks/weeks.txt is deprecated and will be removed in the future. Please move the file to data/config/", DARKYELLOW, "StoryWeeklist");
|
||||
weeksFound = CoolUtil.coolTextFile(oldPath);
|
||||
}
|
||||
}
|
||||
if (weeksFound == null) weeksFound = [for (c in Paths.getFolderContent('data/weeks/weeks/', false, source)) if (Path.extension(c).toLowerCase() == "xml") Path.withoutExtension(c)];
|
||||
if (weeksFound.length > 0) {
|
||||
for (w in weeksFound) {
|
||||
var week = Week.loadWeek(w, loadCharactersData);
|
||||
|
||||
Reference in New Issue
Block a user