Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DarkLights F1 command help not working...

Author
Message
Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 10th Nov 2011 23:25
I installed DarkLights and all the commands are there. But when I hit F1 to load the command help, it just gives a blank screen. If I open the documentation folder, the command help files load up fine. But it's an inconvenience to have to keep jumping back and forth. Is there a way I can get those files to be accessible within DBPro?

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 12th Nov 2011 00:05
Hi there. I don't have DarkLights but the issue is with the way it is set up to load help files. So when your DarkLights installed, it will have placed a .ini file in your keywords file to tell the IDE which words need syntax highlighting. If your DarkLights commands are showing in blue as they should, then the file is OK. In that case, you need to find the file (only do this if you really care because it will take a while). You'll find the file under your DarkBASIC Pro install directory Editor\Keywords\ . In that folder, you need to the find the file that will presumably be called something like DarkLights.ini. Open it up in a text editor. The structure is:

COMMAND NAME HERE=file\path\command.htm=parameters here

So an example would be:

CREATE ANIMATED SPRITE=commands\sprite\CREATE ANIMATED SPRITE.htm=Sprite Number, Filename, Across, Down, Image Number

The address of the help file between the two = signs is what tells the IDE what help file to load. The address is relative to the Help file under your DBPro install. So you may need to move the documentation into the Help folder if it's not already there or you may need to correct the addresses if they are wrong. If you really have to go through them all because they're all wrong, I suggest writing a little DBP program to automate the process for you.

Hope that helps. Do say if that didn't make any sense.

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 12th Nov 2011 22:42
As strange as it sounds, I looked at those file pathnames. They are where they belong and everything now matches up. The commands still turn blue like always but the help files still don't load.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 13th Nov 2011 16:26
You're sure that all the files are in the correct place relative to the Help\ folder? Hmmm. Which IDE are you using?

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 14th Nov 2011 06:06
the full version and dbpro 7.5. It should be in the "...\help\addoncommands\darklights" right? That's where it installed the file. And under the "editor\keywords\keywordDL.ini" the listed paths are correct (i.e.:LM Start=commands\DarkLIGHTS\LM Start.html=*No Parameters*) So I don't know what to make of it.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 14th Nov 2011 16:47
Sorry if I'm missing something but are you saying that your Dark Lights help files are in \help\addoncommands\darklights\ but the ini file is pointing to \help\commands\DarkLIGHTS\ ? Because if so, then that's your problem because those addresses are not the same. One is to commands and the other is to addoncommands. So you might want to do a find/replace of commands\ in the ini file and replace with addoncommands\ . Hope that helps.

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 15th Nov 2011 04:08
I put the help files into the commands\... folder and it still doesn't work. I treid changing the path name to point the the addoncommands folder and it still didn't work. I still get a blank screen. This is not making sense even more than my previous post lol.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 15th Nov 2011 16:35 Edited at: 15th Nov 2011 16:36
Quote: "I put the help files into the commands\... folder"

As in, you put the DarkLIGHTS folder in their right? Because the address you said is \help\addoncommands\darklights\. Well if all the files are in the correct place, I'm as puzzled as you are. The only thing I can suggest is to try some other IDEs and see if they have the same problem. Good luck!

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 16th Nov 2011 04:04
the other ones work fine arkPHYSICS, DarkAI, they all come up properly. Dark lights is the only one. Yes, I put it in the proper folder. So I am now stumped...

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 16th Nov 2011 05:00
OK stupid question coming up but have you actually opened the DarkLights help files in your browser? Because you say it displays nothing but if it couldn't find the file, I would have expected some kind of an error so I wonder if something's happened to the html files and they're blank?

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 17th Nov 2011 03:48
Yes I have. That was my first check. If I do it that way they open up fine. Just like they should inside DBPro. That's the confusing thing. The individual help files i.e:LM Start.html loads fine on it's own. This is why I am confused.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 17th Nov 2011 04:59
To be honest, I'm pretty much totally out of ideas now. How much does it bother you? You could try some other IDEs to see if they handle it any differently. You could have a look at the html and check it's all nicely closed and not sloppily written because the IDE is probably using some antiquated trident module to render the page so you never know what might throw it off which your modern webbrowser handles with ease. If you wanted to attach the ini file and one of the help files, I will have a play around with it for you to see if I can get it to work. Obviously windows is not case sensitive but maybe the case different is causing an issue? Could the space character in the file name be a problem? Good luck!

papriku
14
Years of Service
User Offline
Joined: 17th Nov 2011
Location:
Posted: 17th Nov 2011 18:19
Does you F1 works with any other programs?

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 18th Nov 2011 04:54
The F1 works with all the other commands. Even the new Darkphysics,darkAI and all. Darklights is the only one that doesn't work. Here's the file. The ini is in the same folder for now only because it was easier to send it to you.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 18th Nov 2011 05:08 Edited at: 18th Nov 2011 05:09
Ah elementary my dear Watson! You see all your ini file addresses point to the files as .html files but in fact, if you look, they are .htm files! Thus, you need to remove the l from the end of each file name as it appears in the ini file. Or add the l to each of the file names but I guess that would take longer. Hope that helps!

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 3rd Dec 2011 22:45
that will be fun. Can I just add an l to the ini file or do I have to remove the l from the html part? Or does it not really matter which way I go? lol I will try and let you know. Thanks again. Have another penguin on me

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Dec 2011 22:52
Quote: "or do I have to remove the l from the html part?"

this

use an editor which has replace all function if you want to do it with one click

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 3rd Dec 2011 22:58
I went into the .ini file and used the LM Start.htm as a trial. It didn't make a difference. Everything is grammatically correct i.e.: LM Start=commands\DarkLIGHTS\LM Start.htm*no parameters*
And it still didn't work. I made sure that the DarkLIGHTS folder was moved to the commands folder and spelled out just like the file would call it. No luck.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 3rd Dec 2011 23:59 Edited at: 4th Dec 2011 00:01
i did everything you did and it worked for me. you obviously did something wrong

Here are my keywords, try them

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 4th Dec 2011 23:07
I replaced my keywords file with yours and it still doesn't work. I have the htm files in the commands\DarkLIGHTS directory and all. I don't get this. I don't know what I'm doing wrong here.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Dec 2011 23:12
if you are using new codesurge editor try rebuilding keywords (Tools->Rebuild keywords)

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 14th Dec 2011 22:44
I'm using the newest update for DBPro. not sure what codesurge is.

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 19th Dec 2011 23:33
Thanks for all the help. I finally got it working. Penguins all around!!!

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003
Lucas Tiridath
AGK Developer
17
Years of Service
User Offline
Joined: 28th Sep 2008
Location: Kings Langley, UK
Posted: 20th Dec 2011 08:53
Great! So what was the secret to finally get it working? Maybe it will help someone.

Cruise McClarren
20
Years of Service
User Offline
Joined: 23rd Aug 2005
Location:
Posted: 22nd Dec 2011 23:27
well after doing evrything else I used the rebuid keywords and it now works. So I think after adjusting the file path and then rebuilding that was the trick. Thanks again!!

LIFE: "That thing that happens to us when we are too young to die"
~V.J.C. 2003

Login to post a reply

Server time is: 2026-07-09 21:19:33
Your offset time is: 2026-07-09 21:19:33