<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[State.hx:13: Type not found : MapSchema when trying colyseus with haxe&#x2F;openfl.]]></title><description><![CDATA[<p>Downloaded the example from here:<br />
<a href="https://github.com/colyseus/colyseus-examples" rel="nofollow">https://github.com/colyseus/colyseus-examples</a></p>
<p>I get error from State.hx :</p>
<p>import io.colyseus.serializer.schema.*;</p>
<p>class State extends Schema {<br />
	@:type(&quot;map&quot;, Player)<br />
	public var players: MapSchema&lt;Player&gt; = new MapSchema&lt;Player&gt;();</p>
<p>}</p>
<p>I have already installed<br />
Haxe, OpenFL, Lime, colyseus, colyseus-websocket</p>
<p>How can I sort the error?</p>
]]></description><link>http://discuss.colyseus.io/topic/466/state-hx-13-type-not-found-mapschema-when-trying-colyseus-with-haxe-openfl</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 13:55:38 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/466.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2021 19:18:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to State.hx:13: Type not found : MapSchema when trying colyseus with haxe&#x2F;openfl. on Invalid Date]]></title><description><![CDATA[<p>Downloaded the example from here:<br />
<a href="https://github.com/colyseus/colyseus-examples" rel="nofollow">https://github.com/colyseus/colyseus-examples</a></p>
<p>I get error from State.hx :</p>
<p>import io.colyseus.serializer.schema.*;</p>
<p>class State extends Schema {<br />
	@:type(&quot;map&quot;, Player)<br />
	public var players: MapSchema&lt;Player&gt; = new MapSchema&lt;Player&gt;();</p>
<p>}</p>
<p>I have already installed<br />
Haxe, OpenFL, Lime, colyseus, colyseus-websocket</p>
<p>How can I sort the error?</p>
]]></description><link>http://discuss.colyseus.io/post/1505</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1505</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to State.hx:13: Type not found : MapSchema when trying colyseus with haxe&#x2F;openfl. on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/799">@vishwasgagrani</a>, welcome! What is the error you're getting exactly?</p>
]]></description><link>http://discuss.colyseus.io/post/1506</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1506</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to State.hx:13: Type not found : MapSchema when trying colyseus with haxe&#x2F;openfl. on Invalid Date]]></title><description><![CDATA[<p>When I use the command:<br />
<strong>openfl test html5</strong><br />
It says:</p>
<p>Source/State.hx:13: characters 22-39 : Type not found : MapSchema</p>
<p>The command for openfl works fine for other projects.</p>
]]></description><link>http://discuss.colyseus.io/post/1507</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1507</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to State.hx:13: Type not found : MapSchema when trying colyseus with haxe&#x2F;openfl. on Invalid Date]]></title><description><![CDATA[<p>Figured it out. The state.hx needs one more line:<br />
import io.colyseus.serializer.schema.types.*;</p>
<p>So the code becomes:</p>
<p>import io.colyseus.serializer.schema.<em>;<br />
<em><em>import io.colyseus.serializer.schema.types.</em>;</em></em></p>
<p>class State extends Schema {<br />
	@:type(&quot;map&quot;, Player)<br />
	public var players: MapSchema&lt;Player&gt; = new MapSchema&lt;Player&gt;();</p>
<p>}</p>
]]></description><link>http://discuss.colyseus.io/post/1509</link><guid isPermaLink="true">http://discuss.colyseus.io/post/1509</guid><dc:creator><![CDATA[vishwasgagrani]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>