Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

Compiling help: Can't compile game, even without changing code.

Open Declan-Reid opened this issue 9 months ago • 12 comments

  • [ ] Windows
  • [x] Mac
  • [ ] Linux
  • [ ] HTML5

Please describe your issue. Provide extensive detail and images if possible.

I'm trying to compile the game before I made any mods, but I can't do that due to some errors in OpenFL. I don't understand what is going on.

Console dump:

Warning: Lime version 8.1.2 may not be compatible with OpenFL 9.2.2 (expected version 7.7.0+)
Use <lime version="" /> before <haxelib name="openfl" /> to include a specific version
Use <lime version="" /> before <haxelib name="openfl" /> to include a specific version
source/Prebuild.hx:15: Building...
source/funkin/util/macro/GitCommit.hx:55: Git Branch Name: main
source/funkin/util/macro/GitCommit.hx:26: Git Commit ID: a6948c3
source/funkin/util/macro/GitCommit.hx:101: Git Status Output: 
 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 WARNING  /Users/2794/Documents/GitHub/funkin/.haxelib/flixel/git/flixel/FlxState.hx:196: lines 196-199

 196 |  public function switchTo(nextState:FlxState):Bool
 197 |  {
 198 |   return true;
 199 |  }
     |
     | switchTo is deprecated, use startOutro

 ERROR  /Users/2794/Documents/GitHub/funkin/.haxelib/openfl/git/src/openfl/utils/Assets.hx:602: characters 49-55

 602 |      LimeAssets.registerLibrary(name, _library, unload);
     |                                                 ^^^^^^
     | Too many arguments

 ERROR  /Users/2794/Documents/GitHub/funkin/.haxelib/openfl/git/src/openfl/utils/Assets.hx:602: characters 49-55

 602 |      LimeAssets.registerLibrary(name, _library, unload);
     |                                                 ^^^^^^
     | Too many arguments

 ERROR  /Users/2794/Documents/GitHub/funkin/.haxelib/lime/8,1,2/src/lime/system/Sensor.hx:15: characters 24-62

  15 |  public var onUpdate = new Event<Float->Float->Float->Void>();
     |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     | Unknown<0> cannot be constructed```

Any and all help is appreciated. I know this is not an awfully descriptive issue, but I'm not sure what to even write.

Declan-Reid avatar May 12 '24 13:05 Declan-Reid

You're using the wrong version of lime, I know that much. The one from the funkin crew's fork uses 8.0.2, not 8.1.2. Make sure you switch to the funkin crew versions of your libraries and not the vanilla ones. You either installed the wrong ones, installed the wrong ones after you installed the right ones, or it didn't switch the libraries. I hope you used the compiling guide because it goes through how to get the libraries

biomseed avatar May 12 '24 16:05 biomseed

I've now installed 8.0.2, but it hasn't made an effect. I also uninstalled 8.1.2 so that shouldn't be affecting it. I tried to follow the compiling guide as close as I could.

Declan-Reid avatar May 12 '24 23:05 Declan-Reid

And how would I "switch to the funkin crew versions of your libraries". No clue how.

Declan-Reid avatar May 12 '24 23:05 Declan-Reid

And how would I "switch to the funkin crew versions of your libraries". No clue how.

hmm install should already do that for you. What's your current Haxe version btw? You can see it with haxe --version

NotHyper-474 avatar May 13 '24 17:05 NotHyper-474

My haxe is on version 4.3.4. I ran hmm install during installation so I'm not sure.

Declan-Reid avatar May 13 '24 22:05 Declan-Reid

Hmm it's possible it could be using non-Funkin Lime. Try doing haxelib git lime https://github.com/FunkinCrew/lime

NotHyper-474 avatar May 13 '24 22:05 NotHyper-474

Well I uninstalled lime and recompiled the game and now I only have on error, but its not the same, so I'm working on that. I'll see if this compile fixes it.

Declan-Reid avatar May 13 '24 22:05 Declan-Reid

Hmm it's possible it could be using non-Funkin Lime. Try doing haxelib git lime https://github.com/FunkinCrew/lime

You can switch versions of libraries. You don't need to install it again.

biomseed avatar May 13 '24 23:05 biomseed

Hmm it's possible it could be using non-Funkin Lime. Try doing haxelib git lime https://github.com/FunkinCrew/lime

You can switch versions of libraries. You don't need to install it again.

How, then?

NotHyper-474 avatar May 13 '24 23:05 NotHyper-474

Hmm it's possible it could be using non-Funkin Lime. Try doing haxelib git lime https://github.com/FunkinCrew/lime

You can switch versions of libraries. You don't need to install it again.

How, then?

haxelib set [project-name] [version]

biomseed avatar May 13 '24 23:05 biomseed

I HAVE NEWS. I deleted .haxelib and ran hmm install and it built! Thank you all!

Declan-Reid avatar May 14 '24 00:05 Declan-Reid

Good to hear that you managed to solve it!

NotHyper-474 avatar May 14 '24 00:05 NotHyper-474