rejetto forum

Scrambled RAWR-Template

Ryan J · 11 · 10241

0 Members and 1 Guest are viewing this topic.

Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile
I have used your RAWR Template 0.1.1 for some time with an old Beta (203) and it works fine.
However, when I use the latest Beta, HFS2.2e or my own modified 2.2e sources the pages are scrambled.
I normally (with the old Beta) just drag the template to HFS and a dialog box pops up, but this doesnt happen with the latest builds.
I've checked the F.A.Q and searched but I can't find a solution.
I would appreciate your help.
Thanks in advance.
Ryan J
« Last Edit: December 27, 2008, 04:08:05 PM by That_Stevens_Guy »


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Hi ! (again)  ;)

The recent templates (RAWR and a few others) works with recent beta versions of hfs (minimum 2.3 build #192).
The build 203 is not very old.

The stable version of hfs (2.2e) does not contain all the macros needed for these templates ... nor the drag and drop of .tpl

Conclusion: have fun rather with the beta sources  ... they have more opportunities with templates.

http://www.rejetto.com/forum/index.php?topic=5127.0



However, when I use the latest Beta, HFS2.2e or my own modified 2.2e sources the pages are scrambled.

"To install this template,  extract the archive so that 'template' and 'RAWR-Template-x.x.x.tpl' is  beside hfs.exe. Open HFS, go to 'Menu > HTML Template > Change Template'  and select the .tpl file. Once this is successful. Hit the 'Open in browser' button located on the left side of HFS. The template is now set up."

http://www.rejetto.com/forum/index.php?topic=5456.0
« Last Edit: December 26, 2008, 03:09:01 PM by SilentPliz »


Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile
Thanks - I'll try compiling the latest sources and give it a go :)


Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile
Latest Beta sources worked great thanks ;D
Can I get the default template to be the RAWR template?
I've tried but I have to manually add the "Template" folder and even then the page is scrambled.
Is this possible or should I stick to importing the template?
I ask this because I use HFS on a flash drive and the computer constantly changes the drive letter so I keep having to import the templates manually.
Thanks alot for the help, it is really appreciated.
Ryan J


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Menu > Save options > to file
keep your files hfs.tpl and hfs.ini with hfs.exe in your flash drive.


You can compile the RAWR template with hfs:
-1 You rename rawrxxx.tpl  > default.tpl
-2 You put in your sources.
-3 You use the file > recompile data.bat for update the sources.
-4 You compile with Delphi.



You can also rename the rawrxxx.tpl > hfs.diff.tpl and put it to the users root folders of your choice.
In this case, you put also folders "rawr" in your VFS (accessibles but hidden) (I am not sure to be clear ... in French it will be easier) ;D
« Last Edit: December 27, 2008, 12:37:01 PM by SilentPliz »


Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile

Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile
If I compile the sources with a different template it doesn't make a difference (e.g the template is still the same, original one) and I have to use Reshack to change it.
Any solution? Where am I going wrong?
Once i've changed it with reshack though it only works if I add the template folder manually. Is there any way to automate this?
Thanks again
Ryan J


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
The template that you want to compile, name it default.tpl.
Add it to your sources.
Double-click on recompile data.bat
Run Delphi, construct and compile your project.

In the directory where you will put your hfs.exe, you delete the hfs.tpl file (if exist).
Run your hfs.exe ... So, the default template must be the one you compiled.

Quote
Once i've changed it with reshack though it only works if I add the template folder manually. Is there any way to automate this?

Besides if you have these folders (template) in the folder of hfs.exe.
Or if you have one .VFS valid.

I do not see how otherwise.

   
Maybe someone knows how to compile also the additionals files ?...
« Last Edit: December 30, 2008, 10:50:09 AM by SilentPliz »


Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile
The template that you want to compile, name it default.tpl.
Add it to your sources.
I have done this.
Double-click on recompile data.bat
When I run the bat file it says it isnt a recognised command. I've had a look at the batch file and I need 2 commands. I've tried googling them but I can't find them, do you know?
How do you construct?
Thanks
« Last Edit: December 30, 2008, 01:32:40 PM by Ryan J »


Offline SilentPliz

  • Operator
  • Tireless poster
  • *****
    • Posts: 1298
  • ....... chut ! shh!
    • View Profile
Ok...
brc32.exe and brcc32.exe are in:
~\Borland\BDS\4.0\Bin

This is abnormal that the execution of the file recompile data.bat is impossible.
Are you sure you have correctly configured the paths on Delphi ?
Think reading help on the configuration.

For the word "construct" ... I use a French version of Delphi.
I gave you a screenshot... test to find something similar in your Delphi.

You can remove the files .dcu and .map of your project before you compile... This is the same thing.
« Last Edit: December 30, 2008, 03:57:41 PM by SilentPliz »


Offline Ryan J

  • Occasional poster
  • *
    • Posts: 38
  • Soon to be coder...
    • View Profile