TownGeneratorOS icon indicating copy to clipboard operation
TownGeneratorOS copied to clipboard

Type not found: lime.graphics.Renderer

Open Sult opened this issue 6 years ago • 7 comments

When I try to get the project running, i am getting an error with the lime package. Source/com/watabou/utils/Updater.hx:3: characters 7-29 : Type not found : lime.graphics.Renderer

versions: lime: [7.0.0] msignal: [1.2.4] openfl: [8.4.1]

Sult avatar Aug 15 '18 10:08 Sult

This config of packages seems to work:

lime: [5.3.0] msignal: [1.2.4] openfl: [6.0.1]

Derfies avatar Aug 26 '18 03:08 Derfies

Hey, Could it be that I also need an older version of haxe? First i got the following message: Invalid -main : com.watabou.towngenerator.Main does not have static function main So I added "static public function main()" myself

However than it I get "/usr/local/lib/haxe/lib/openfl/6,0,1/openfl/display/DisplayObjectContainer.hx:47: characters 22-50 : t : openfl._Vector.IVector<openfl.display.DisplayObject> -> length : Int -> fixed : Bool -> openfl._Vector.ObjectVector<openfl.display.DisplayObject> should be openfl._Vector.IVector<openfl.display.DisplayObject> -> openfl._Vector.ObjectVector<openfl.display.DisplayObject>"

The command i run is: haxe -main com.watabou.towngenerator.Main -lib lime -lib openfl -lib msignal

Sult avatar Aug 27 '18 12:08 Sult

d:\HAXE\TownGeneratorOS-master\Source>haxe -main com.watabou.towngenerator.Main -lib lime -lib openfl -lib msignal d:\HaxeToolkit\haxe\lib\openfl/6,0,1/haxe/io/FPHelper.hx:160: characters 29-52 : Class<neko.NativeString> has no field alloc d:\HaxeToolkit\haxe\lib\openfl/6,0,1/haxe/io/FPHelper.hx:69: characters 29-52 : Class<neko.NativeString> has no field alloc d:\HaxeToolkit\haxe\lib\openfl/6,0,1/haxe/io/FPHelper.hx:240: characters 4-15 : haxe.Int64 has no field set_low d:\HaxeToolkit\haxe\lib\openfl/6,0,1/haxe/io/FPHelper.hx:241: characters 4-16 : haxe.Int64 has no field set_high d:\HaxeToolkit\haxe\lib\lime/5,3,0/haxe/io/Bytes.hx:366: characters 16-21 : Cannot access private field low d:\HaxeToolkit\haxe\lib\lime/5,3,0/haxe/io/Bytes.hx:367: characters 20-26 : Cannot access private field high D:\HaxeToolkit\haxe\std/neko/vm/Tls.hx:30: characters 6-18 : Primitive not found std@tls_create:0 :1: character 0 : Called from D:\HaxeToolkit\haxe\std/neko/vm/Tls.hx:24: lines 24-46 : Called from d:\HaxeToolkit\haxe\lib\openfl/6,0,1/haxe/io/FPHelper.hx:33: characters 21-45 : Called from Aborted

twobob avatar Aug 28 '18 05:08 twobob

running a really old 2.1 of haxe does not help d:\HAXE\TownGeneratorOS-master\Source>haxelib install lime No such Project : lime d:\HAXE\TownGeneratorOS-master\Source>haxelib Haxe Library Manager 1.03 - (c)2006 Motion-Twin

twobob avatar Aug 28 '18 05:08 twobob

@Sult I get the same error message as you do following @Derfies package advice. This is my first time looking at anything Haxe related. Nightmare that there's no hxml file!

awilliamson avatar Sep 20 '18 20:09 awilliamson

For people curious about this generator that have trouble making this thing work, I don't know anything about haxe, but I got it to work on my fork here: https://github.com/grandemk/TownGeneratorOS

grandemk avatar Mar 24 '20 12:03 grandemk

Hey, Superthanks. this actually got it running for me as well.

Sult avatar Mar 24 '20 14:03 Sult