colyseus / colyseus-haxe

⚔ Colyseus Multiplayer SDK for Haxe
https://docs.colyseus.io/getting-started/haxe-client/
MIT License
75 stars 16 forks source link

Type not found : io.colyseus.Client #16

Closed ccfiel closed 5 years ago

ccfiel commented 5 years ago

I follow this instruction https://docs.colyseus.io/getting-started/haxe-client/ I install using this

haxelib git colyseus https://github.com/colyseus/colyseus-hx.git
haxelib git haxe-ws https://github.com/colyseus/haxe-ws.git

but every time I run my game I got this error Type not found : io.colyseus.Client. Any idea why?

import io.colyseus.Client;
sh-dave commented 5 years ago

I would guess a -lib colyseus-hx is missing somewhere in your build scripts to actually include the library.

ccfiel commented 5 years ago

thanks!

Raam124 commented 3 years ago

I would guess a -lib colyseus-hx is missing somewhere in your build scripts to actually include the library.

I'm having the same issue. where should I include this exactly ??

sh-dave commented 3 years ago

Mostly depends on the framework you're using. Normally you can just provide it via the commandline or the hxml to the haxe compiler. If you're using openfl it should be placed somewhere in the project.xml iirc, but you have to read up on that in the openfl documentation.

Raam124 commented 3 years ago

Mostly depends on the framework you're using. Normally you can just provide it via the commandline or the hxml to the haxe compiler. If you're using openfl it should be placed somewhere in the project.xml iirc, but you have to read up on that in the openfl documentation.

Thanks