The Dink Network

Browser Editor

April 30th, 08:30 AM
peasantm.gif
shevek
Peasant Netherlands
Never be afraid to ask, but don't demand an answer 
I've just uploaded my current very incomplete version of my browser editor. It can only be used to view D-Mods, as editing isn't supported yet. It does however give messages about problems with D-Mods, so I think it may be useful for some people regardless.

Please check it out, fix your D-Mods and please let me know what you think about it!
May 1st, 09:14 AM
peasantm.gif
shevek
Peasant Netherlands
Never be afraid to ask, but don't demand an answer 
Oh, and I should warn that it takes quite a bit of memory. It's not a problem if you don't reload the page more than a few times. The "solution" is to close the tab, go to about:memory (just type that in the location bar) and click "Minimize memory usage". After that, you can use "Undo Close Tab" (right-click on the tab bar) to reload the editor.
May 2nd, 09:46 AM
spike.gif
SlipDink
Peasant Male United States bloop
2nd generation. No easy way to be free. 
Hmmm. So, you uploaded it, but it has not been posted yet? I cannot find it under either the Files/Dev or Files/Misc tabs, even if I sort by the Updated column.

Since it obviously (based on your report of the "All that Glitters" Dink.ini file) indicates Dink.ini errors, I was going to use it myself for my next release of that module, but could not find it on the DN.

May 2nd, 02:01 PM
peasantm.gif
shevek
Peasant Netherlands
Never be afraid to ask, but don't demand an answer 
So, you uploaded it, but it has not been posted yet?

Yes, that's correct. I've put it on my own server now so you can get it. It will probably not stay there once it is published here.

One note about that version compared to what I used for checking your mod: It does not accept ; for comments, but only //, and also does not allow LEFTALIGN (because it is identical to NOTANIM, so I think you should just use that). That gives many more errors though, and none of them are interesting, so I didn't show them in that post.

When checking your D-Mod, fix the ini file errors before any others; for example, because it didn't load the rat images, it will give errors for displaying them.

I wrote some instructions with the upload, which you can read when it is published. The main thing you need to know is that you need to enable the developer console (ctrl-shift-k in Firefox) and I have only tested it in Firefox, so it's best to use that. Just unpack the zip file in your dmods directory and open editor.html, then add '?glitters' to the location (so it's file:///home/slipdink/dmods/editor.html?glitters).

In case of questions, please ask.
May 2nd, 04:44 PM
spike.gif
SlipDink
Peasant Male United States bloop
2nd generation. No easy way to be free. 
Why is there a (rather large) dink/orig directory included in your editor.zip file? Am I correct in assuming that you really only meant to include editor.html and the editor directory in your zip file?
May 2nd, 05:25 PM
peasantm.gif
shevek
Peasant Netherlands
Never be afraid to ask, but don't demand an answer 
Why is there a (rather large) dink/orig directory included in your editor.zip file?

Oops, the orig directory should not have been there indeed.

However, the rest of the dink directory is needed. The editor requires all the resources to be loadable by the browser. So the images must be bmp files, not the packed dir.ff files that Dink ships with. Also, because it cannot retrieve a list of available files and Dink filenames are case insensitive, all files are requested as lowercase and so if the filesystem you use it on is case sensitive, some files need to be renamed. The bundled dink directory has all the dir.ff files unpacked and has all the files renamed to be lowercase only.

Thanks for letting me know. I'll upload a new version here which doesn't contain it. I expect it to be published instead of this one.

Edit: (because I want to see if editing works ) I have uploaded the new version to the site, and I've also put it on my server (same link as before). It allows ; comments and LEFTALIGN as well, so you may want to get it. Although getting rid of all that sounds good to me as well.