The Dink Network

Browser Editor

April 30th 2018, 08:30 AM
peasantm.gif
shevek
Peasant They/Them 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 2018, 09:14 AM
peasantm.gif
shevek
Peasant They/Them 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 2018, 09:46 AM
spike.gif
SlipDink
Peasant He/Him United States bloop rumble
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 2018, 02:01 PM
peasantm.gif
shevek
Peasant They/Them 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 2018, 04:44 PM
spike.gif
SlipDink
Peasant He/Him United States bloop rumble
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 2018, 05:25 PM
peasantm.gif
shevek
Peasant They/Them 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.
June 11th 2018, 02:14 AM
pillbug.gif
hey Shevek I tried loading this up on a local webserver and seems to be missing files

dink.js:453 GET http://localhost:8000/dmod/hard.dat 404 (File not found)
dink.js:450 GET http://localhost:8000/dink/hard.dat 404 (File not found)
dink.js:479 GET http://localhost:8000/dmod/dmod.diz 404 (File not found)
GET http://localhost:8000/dink/dmod.diz 404 (File not found)
dink.js:426 GET http://localhost:8000/dmod/tiles/ts01.bmp 404 (File not found)
June 11th 2018, 11:09 AM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
First of all, the editor is not usable yet for editing; viewing a D-Mod (and finding errors, most notably in dink.ini) is currently its only use.

You seem to be trying to open it without a D-Mod to open. Because editing is not supported, that is currently not useful.

You should make sure you have a D-Mod unpacked under the directory that holds the index.html file. Let's say it's named "mydmod". Then you point your browser to http://localhost:8000/?mydmod . It will then load that D-Mod.

One more thing you need to know: all filenames must be entirely lowercase.

Finally, I suppose it's possible to make a D-Mod using the default hard.dat; this means it should have been shipped in the dink directory. I forgot to do that, so you'll need to supply your hard.dat in your D-Mod.

Does that help? Let me know if you get it working.

I'll upload a new version soon; it gives some feedback if you don't give it a D-Mod to load, it gives some feedback during loading (which takes a while) and it allows editing of floor tiles. So obviously not usable for making a complete D-Mod yet, but there's progress.