larsiusprime / bazaarBot

A simple free market simulator engine. Based on "Emergent Economies for Role Playing Games" by Doran and Parberry.
MIT License
377 stars 47 forks source link

Support other targets #2

Closed polymeris closed 9 years ago

polymeris commented 11 years ago

When trying to build for other target languages (I am particularly interested in C#), I get:

com/leveluplabs/bazaarbot/BazaarBot.hx:4: characters 7-25 : You cannot access the flash package while targeting cs (for flash.errors.Error)

Does that mean only flash is supported?

larsiusprime commented 11 years ago

No, it just means I need to fix the code up a bit better :)

I've compiled it in flash and C++ before.

The "flash" package is actually part of OpenFL, which intends to be cross-platform. So it has native implementations for flash.errors.Error (and many other things) for stuff like C++. So likely the C-# implementation for that is missing.

For now, we could work around this issue by throwing in some compiler conditionals for c# and use something else for that platform.

polymeris commented 11 years ago

Oh, I see. Now that you mention it, my openfl installation might be broken, too: haxelib run openfl setup

sh: 1: neko: not found