Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 4bf38c1

Browse files
committed
major fucking changes
modcore hscript support use tjson for json stuff make a template mod folder redo script stuff a little bit make middlescroll use PlayStateChangeables I'll add more script stuff later
1 parent a7756c1 commit 4bf38c1

18 files changed

Lines changed: 97 additions & 117 deletions

‎Project.xml‎

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@
1717
<!--Minimum without FLX_NO_GAMEPAD: 11.8, without FLX_NO_NATIVE_CURSOR: 11.2-->
1818
<set name="SWF_VERSION" value="11.8" />
1919

20+
<!-- Use defines to ensure compile-time definitions have readable context. -->
21+
<!-- Allowed inputs are mobile,desktop,web,ios,android,windows,mac,linux,switch,html5,cpp,neko,flash,js -->
22+
23+
<!-- Defines whether the Discord client should be enabled. Only works on desktop. -->
24+
<define name="FEATURE_DISCORD" if="desktop" />
25+
<!-- Defines whether the file system can be read/written directly. Does not work in browser. -->
26+
<define name="FEATURE_FILESYSTEM" if="desktop" />
27+
<!-- Defines whether Lua Modcharts should be enabled. Only works on Windows. -->
28+
<define name="FEATURE_LUAMODCHART" if="desktop" />
29+
<!-- Defines whether StepMania files can be loaded. -->
30+
<define name="FEATURE_STEPMANIA" if="desktop" />
31+
<!-- Defines whether the Thread class can be used. -->
32+
<define name="FEATURE_MULTITHREADING" if="cpp" />
33+
<!-- Videos -->
34+
<define name="VIDEOS" if="desktop || android"/>
35+
<!-- Defines if hscript are enabled. Dosen't work in browser -->
36+
<define name="FEATURE_HSCRIPT" if="desktop" />
37+
<!-- Defines whether modcore can be used. -->
38+
<define name="FEATURE_MODCORE" if="desktop" />
39+
2040
<!-- ____________________________ Window Settings ___________________________ -->
2141

2242
<!--These window settings apply to all targets-->
@@ -119,26 +139,31 @@
119139
<assets path="assets/fonts" embed='true'/>
120140
<!-- _______________________________ Libraries ______________________________ -->
121141

122-
<haxelib name="flixel" />
123142
<haxedev set='webgl' />
124143

125-
<!--In case you want to use the addons package-->
126-
<haxelib name="flixel-addons" />
144+
<!-- Flixel -->
127145

128-
<!--In case you want to use the ui package-->
146+
<haxelib name="flixel" />
147+
<haxelib name="flixel-addons" />
129148
<haxelib name="flixel-ui" />
149+
<!-- APIs -->
150+
151+
<haxelib name="discord_rpc" if="FEATURE_DISCORD"/>
152+
<haxelib name="polymod" if="FEATURE_MODCORE"/>
153+
<haxelib name="linc_luajit" if="FEATURE_LUAMODCHART"/>
154+
<haxelib name="SScript" if="FEATURE_HSCRIPT"/>
155+
<haxedef name="openflPos" if="FEATURE_HSCRIPT"/>
156+
<haxedef name="hscriptPos" if="FEATURE_HSCRIPT"/>
157+
158+
<!-- Utilities -->
159+
130160
<haxelib name="faxe" if='switch'/>
131-
<haxelib name="discord_rpc" if="desktop"/>
132-
<haxelib name="polymod"/>
133-
<haxelib name="linc_luajit" if="desktop"/>
161+
<haxelib name="tjson"/>
134162
<haxelib name="hxcpp-debug-server" if="desktop"/>
135163
<section if="cpp">
136164
<haxelib name="hxvlc" if="desktop || android" />
137165
</section>
138-
<haxelib name="SScript"/>
139166

140-
<haxedef name="openflPos" />
141-
<haxedef name="hscriptPos" />
142167

143168
<!-- <haxelib name="markdown" /> -->
144169
<!-- <haxelib name="HtmlParser" /> -->
@@ -202,31 +227,6 @@
202227
<icon path="art/icon512.png" size='512'/>
203228
<icon path="art/iconOG.png" />
204229

205-
<!-- Use defines to ensure compile-time definitions have readable context. -->
206-
<!-- Allowed inputs are mobile,desktop,web,ios,android,windows,mac,linux,switch,html5,cpp,neko,flash,js -->
207-
208-
<!-- Defines whether the Discord client should be enabled. Only works on desktop. -->
209-
<haxedef name="FEATURE_DISCORD" if="desktop" />
210-
<!-- Defines whether the file system can be read/written directly. Does not work in browser. -->
211-
<haxedef name="FEATURE_FILESYSTEM" if="desktop" />
212-
<!-- Defines whether Lua Modcharts should be enabled. Only works on Windows. -->
213-
<haxedef name="FEATURE_LUAMODCHART" if="desktop" />
214-
<!-- Defines whether StepMania files can be loaded. -->
215-
<haxedef name="FEATURE_STEPMANIA" if="desktop" />
216-
<!-- Defines whether the Thread class can be used. -->
217-
<haxedef name="FEATURE_MULTITHREADING" if="cpp" />
218-
<!-- Videos -->
219-
<haxedef name="VIDEOS" if="desktop || android"/>
220-
<!-- Defines if hscript are enabled. Dosen't work in browser -->
221-
<define name="FEATURE_HSCRIPT" if="desktop" />
222-
<!-- Defines whether modcore can be used. -->
223-
<haxedef name="FEATURE_MODCORE" if="desktop" />
224-
<!--Polymod shit that'll allow hscript I think.-->
225-
<haxedef name="POLYMOD_SCRIPT_EXT" value=".hx" />
226-
<haxedef name="POLYMOD_DEBUG" if="debug" />
227-
<haxedef name="POLYMOD_SCRIPT_LIBRARY" value="scripts" />
228-
<haxedef name="POLYMOD_ROOT_PATH" value="scripts/" />
229-
230230
<haxedef name="gl_stats" if="desktop" />
231231

232232
</project>

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ So I will now do a guide to build the game.
4747

4848

4949
### Installing the needed things
50-
1. Install the latest Haxe. Instead of using Haxe 4.1.5, as the original game used, we will update to Haxe 4.2.4 (or the latest version)
50+
1. Install the latest Haxe. Instead of using Haxe 4.1.5, as the original game used, we will update to Haxe 4.3.3 (or the latest version)
5151
You will first need to go to this link to download [Haxe](https://haxe.org/download/) Choose your platform and just do the normal download proccess.
5252
2. Install HaxeFlixel. Once Haxe is installed, you can download HaxeFlixel. Open a Command Prompt (Windows is right click windows icon and hit command prompt or windows powershell).
5353
3. You will need [Git](https://git-scm.com/downloads)
@@ -64,6 +64,7 @@ haxelib install flixel-addons
6464
haxelib install actuate
6565
haxelib install hxcpp-debug-server
6666
haxelib install polymod 1.7.0
67+
haxelib install tjson
6768
haxelib install SScript
6869
haxelib run lime setup
6970
haxelib run lime setup flixel

‎assets/scripts/readme.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
scripts folder for all playstate scripts
2+
will fire all scripts, no matter what song.
3+
in a way, this can be used with polymod but it'll be complex.
4+
NAH FUCK YOU! IT WORKS WITH POLYMOD 100% NOW!

‎assets/scripts/states/playstate/readme.txt‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎assets/scripts/states/readme.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎easysetup.bat‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ haxelib install flixel-tools
1212
haxelib install flixel-ui
1313
haxelib install flixel-addons
1414
haxelib install hxcpp-debug-server
15-
haxelib install polymod
15+
haxelib install polymod 1.7.0
16+
haxelib install tjson
1617
haxelib install SScript
1718
haxelib run lime setup
1819
haxelib run lime setup flixel
@@ -26,7 +27,6 @@ echo Press any key to install the git libraries.
2627
pause >nul
2728
title KEC Setup - Installing libraries
2829
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit.git
29-
haxelib git hxvm-luajit https://github.com/nebulazorua/hxvm-luajit
3030
haxelib git faxe https://github.com/uhrobots/faxe
3131
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
3232
haxelib git hxvlc https://github.com/MAJigsaw77/hxvlc.git

‎hmm.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"type": "haxelib",
66
"version": null
77
},
8+
{
9+
"name": "tjson",
10+
"type": "haxelib",
11+
"version": null
12+
},
813
{
914
"name": "SScript",
1015
"type": "git",

‎mods/templateMod.zip‎

80.7 KB
Binary file not shown.

‎source/Character.hx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Character extends FlxSprite
118118
case 'SparrowAtlas':
119119
thingy = Paths.getSparrowAtlas(data.asset[0], 'shared');
120120
default:
121-
thingy = Paths.getSparrowAtlas(data.asset[0], 'shared');
121+
thingy = Paths.getSparrowAtlas(data.asset[0], 'shared');
122122
}
123123

124124
for (i in 0...data.asset.length)
@@ -136,7 +136,7 @@ class Character extends FlxSprite
136136
}
137137
}
138138

139-
// Multi-atlas support which breaks everything
139+
// Multi-atlas support which breaks everything
140140

141141
frames = thingy;
142142

‎source/CoolUtil.hx‎

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -237,35 +237,24 @@ class CoolUtil
237237
}
238238

239239
#if FEATURE_FILESYSTEM
240+
/*
241+
* this function is not working. It was solely used for hscript shit. Don't need it anymore.
242+
*/
240243
public static function findFilesInPath(path:String, extns:Array<String>, ?filePath:Bool = false, ?deepSearch:Bool = true):Array<String>
241244
{
242245
var files:Array<String> = [];
243246

244-
if (FileSystem.exists(path))
247+
Debug.logTrace(readAssetsDirectoryFromLibrary(path, 'TEXT'));
248+
249+
if (LimeAssets.exists(path))
245250
{
246-
for (file in FileSystem.readDirectory(path))
251+
for (file in readAssetsDirectoryFromLibrary(path, 'TEXT'))
247252
{
248253
var path = haxe.io.Path.join([path, file]);
249-
if (!FileSystem.isDirectory(path))
250-
{
251-
for (extn in extns)
252-
{
253-
if (file.endsWith(extn))
254-
{
255-
if (filePath)
256-
files.push(path);
257-
else
258-
files.push(file);
259-
}
260-
}
261-
}
262-
else if (deepSearch)
263-
{
264-
var pathsFiles:Array<String> = findFilesInPath(path, extns);
265-
266-
for (_ in pathsFiles)
267-
files.push(_);
268-
}
254+
var pathsFiles:Array<String> = findFilesInPath(path, extns);
255+
256+
for (_ in pathsFiles)
257+
files.push(_);
269258
}
270259
}
271260
return files;

0 commit comments

Comments
 (0)