## Polywell: a text editor component

D0NM
Party member
Posts: 245
Joined: Mon Feb 08, 2016 10:35 am
Contact:

### Re: Polywell: a text editor component

Yay! Nice project!
Don't forget to add UTF8 compatibility into the editor ))
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua

Viomi
Prole
Posts: 11
Joined: Thu Mar 03, 2016 5:13 am

### Re: Polywell: a text editor component

Recently a game called "hackmud" was released.
It's fun. But it has a lot of issues, including:
• The in-game scripts that you can create are all in javascript. Ew! lua is better.
• There is no in-game editor, you have to leave the game and... yeahh...
• All the commands are ugly. see: scripts.get_level { name:"v.malware" }
• Everything is done on one server, so it's been unplayable since release due to all the lag.
So I'm making a prototype game that's similar just for fun and to see if I'm up to the task of doing better on these issues (I've never made a game, you see). And I'm DEFINITELY using polywell.

So thanks for Polywell! I will be putting it to its' full potential, especially once the UI for screen splits is complete.
Last edited by Viomi on Sun Sep 25, 2016 2:45 pm, edited 2 times in total.

technomancy
Prole
Posts: 44
Joined: Thu Oct 29, 2015 8:25 am
Location: Thailand
Contact:

### Re: Polywell: a text editor component

D0NM wrote:Yay! Nice project!
Don't forget to add UTF8 compatibility into the editor ))
I'm currently using it to edit files that contain Thai characters and non-ascii punctuation, so as far as I know it's already supported. Let me know if you run into UTF-8-related bugs though!

technomancy
Prole
Posts: 44
Joined: Thu Oct 29, 2015 8:25 am
Location: Thailand
Contact:

### Re: Polywell: a text editor component

Viomi wrote:So I'm making a prototype game that's similar just for fun and to see if I'm up to the task of doing better on these issues (I've never made a game, you see). And I'm DEFINITELY using polywell.
Cool; sounds like fun! Hope you are able to make it work for you. I feel that the live reloading aspect can definitely help smooth along development. Let me know if you run into problems.

SiENcE
Party member
Posts: 791
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

### Re: Polywell: a text editor component

So how can i start this on windows?

It's almost impossible to start it. Just doing love . doesn't work. Also the example doesn't work to start. There is always an issue loading the dependencies or font.

technomancy
Prole
Posts: 44
Joined: Thu Oct 29, 2015 8:25 am
Location: Thailand
Contact:

### Re: Polywell: a text editor component

SiENcE wrote:So how can i start this on windows?
I've never tried it on Windows, but maybe if you included the actual message from the error in your description of the problem I could tell what went wrong.

SiENcE
Party member
Posts: 791
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

### Re: Polywell: a text editor component

The message says:

Code: Select all

Error: main.lua:1: module 'polywell' not found:
no 'polywell' in LOVE game directories.
no file 'polywell.dll' in LOVE paths.
no file '.\polywell.lua'
no file 'C:\Program Files\love-0.10.2-win64\lua\polywell.lua'
no file 'C:\Program Files\love-0.10.2-win64\lua\polywell\init.lua'
no file '.\polywell.dll'
no file 'C:\Program Files\love-0.10.2-win64\polywell.dll'
stack traceback:
[C]: in function 'require'
main.lua:1: in main chunk
[C]: in function 'require'
[string "boot.lua"]:429: in function <[string "boot.lua"]:275>
[C]: in function 'xpcall'

I the problem lays the file "polywell".

technomancy
Prole
Posts: 44
Joined: Thu Oct 29, 2015 8:25 am
Location: Thailand
Contact:

### Re: Polywell: a text editor component

SiENcE wrote:I the problem lays the file "polywell".
Yeah, it looks like the symlink is being ignored. Try deleting it and replacing it with another full copy of the whole repository, or using some kind of windows-friendly equivalent of symlinks, if such a thing exists.

SiENcE
Party member
Posts: 791
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

### Re: Polywell: a text editor component

Ugly ... but yeah windows has symlinks. Best would be not to use os dependent things in cross platform frameworks.

Tried.

Next problem... line 49: os.getenv("Home") is nil. Remoing it solves the problem and now it works .

Also userhome is on every os on a different location -> https://www.love2d.org/wiki/love.filesystem . You should better use the löve api instead of os.xx

technomancy
Prole
Posts: 44
Joined: Thu Oct 29, 2015 8:25 am
Location: Thailand
Contact:

### Re: Polywell: a text editor component

Thanks; I've moved away from os.getenv for compatibility. I don't know how to fix the symlink issue since I don't have a Windows machine to test on, but if you have a suggestion I can try it.

### Who is online

Users browsing this forum: No registered users and 18 guests