Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal Main Forum (English) (https://forums.graalonline.com/forums/forumdisplay.php?f=4)
-   -   .graal to .nw program (https://forums.graalonline.com/forums/showthread.php?t=36568)

Eban 08-25-2002 03:42 AM

.graal to .nw program
 
Kadar:
Does anyone have the .graal to .nw program that shadow knight made??

I need it badly and i would apreciate it a lot if you have it and you could give me the program :)
Thanks!

Eban 08-25-2002 04:25 AM

Re: Re: .graal to .nw program
 
Quote:

Originally posted by Kaimetsu


The Graal exe does it.

Kadar:
Yes but i am too lazy to go thru all the 750 levels and save them all to .nw..

Python523 08-25-2002 04:52 AM

shadow knight didnt make it -_-;; he just posted it on those forums of his ages ago

magicbud3344 08-25-2002 04:54 AM

Quote:

Originally posted by Python523
shadow knight didnt make it -_-;; he just posted it on those forums of his ages ago
Neonight:

HAHAHA I knew there was a catch.

Or, he could have edited it, so when you use it, all of the NPCs say //NPC made by Shadow Knight

:rolleyes:

Eban 08-25-2002 05:31 AM

Quote:

Originally posted by magicbud3344

Neonight:

HAHAHA I knew there was a catch.

Or, he could have edited it, so when you use it, all of the NPCs say //NPC made by Shadow Knight

:rolleyes:

Kadar:
No i had it before it did not do anything like that it just converted the .graal to .nw :).

HoudiniMan 08-25-2002 06:43 AM

never tried it, but can you just rename it?

- a thought

Graal2001_LAT 08-25-2002 06:47 AM

Isn't it illegal or something? I don't know if it should be distributed yet.



I might have it. Who knows.

Judge_Spunky 08-25-2002 07:13 AM

Quote:

Originally posted by HoudiniMan
never tried it, but can you just rename it?

- a thought

Changing the filetype through the method of renaming rarely works.
The only change that I can think of at the current moment that does work, is a .nfo to .txt change, and only because the information in a .nfo file is basic text.

I hope I am correct to assume that when you change the filetype through renaming, the actual contents of the file are still saved/read in the old format.
For example, if you changed a .bmp to a .png, the file would show in your browser as a .png file, but the contents would still be in .bmp, and whatever program you use you try to read it as a .png. This would cause conflict because the program would try to read it as a .png, but the actual data, wouldd still be compiled in a .mbp format.

Am I, in any way, correct about this?

Python523 08-25-2002 08:03 AM

I think I have this program, I'm not sure if I'm allowed to release it, I only got it because I use to be co-manager on providence and I needed it to convert the levels

screen_name 08-25-2002 10:10 AM

I've opened both *.nw and *.graal files.

Big difference. ;)

Acererak 08-25-2002 10:16 AM

what's the difference again?

Torankusu 08-25-2002 10:48 AM

i had it.

Aruchinjiru 08-25-2002 11:58 AM

Renaming files from .graal to .nw is a pain. You also have to change the links in every level :(

Good luck finding the program Kadar.

Er1c 08-25-2002 12:33 PM

if someone could find out how to decrypt .graal files i could make one.... but i have no idea how to decrypt them

.nw is so easy to work with, i've made a bunch of stuff to edit those... tree generator, tile changer, level viewer...

MysticHasteP2P_2 08-25-2002 01:42 PM

I was unaware there was a difference in .graal - .nw (besides the formatting of the text), I assumed it was like .zelda - .graal, is it better compressed or something?

Graal2001_LAT 08-25-2002 01:57 PM

1 Attachment(s)
DELETE THIS IF IT'S ILLEGAL. Even though in my books it should be LEGAL because it's handy for players, and has no harm.

Here is how it works: When this program is started it converts
all levels that are found in the current folder
or in subfolders to nw levels, including links.

MysticHasteP2P_2 08-25-2002 03:21 PM

so basically it does a search, and anything that says ".graal" it changes to ".nw"

does it change like text signs and stuff :D

Aruchinjiru 08-25-2002 03:22 PM

I don't understand the difference between .nw and .graal.

From my observations though .graal files start out at 1kb or less..while .nw files start out at 10kb or as low as 8kb. What is the difference..encoding or something? :confused:

MysticHasteP2P_2 08-25-2002 09:54 PM

Quote:

Originally posted by Aruchinjiru
I don't understand the difference between .nw and .graal.

From my observations though .graal files start out at 1kb or less..while .nw files start out at 10kb or as low as 8kb. What is the difference..encoding or something? :confused:

<3 thats what i wanna know

EDIT: Ohey look at that post number 100 :D

Python523 08-25-2002 11:18 PM

I think .nw supports more NPCs online as well but I'm too tired to test right now

Flamingblaze 08-25-2002 11:49 PM

Quote:

Originally posted by Python523
I think I have this program, I'm not sure if I'm allowed to release it, I only got it because I use to be co-manager on providence and I needed it to convert the levels
does it convert links as well though?

Graal2001_LAT 08-26-2002 12:48 AM

Quote:

Originally posted by Flamingblaze
does it convert links as well though?
Look at the one I posted, buddy.

Python523 08-26-2002 12:50 AM

Quote:

Originally posted by Flamingblaze
does it convert links as well though?
the one mmmmmmkay posted is the one i have, it converts everything

Krakken 08-26-2002 04:25 AM

If ya wanna see the difference open a .graal file and a .nw file in a text editor then compare.

You will soon see. :]

vovavziggy 08-26-2002 04:33 AM

Quote:

Originally posted by Krakken
If ya wanna see the difference open a .graal file and a .nw file in a text editor then compare.

You will soon see. :]

see what?

Aruchinjiru 08-26-2002 05:14 AM

Quote:

Originally posted by Krakken
If ya wanna see the difference open a .graal file and a .nw file in a text editor then compare.

You will soon see. :]

I guess I'll have to take a closer look. All that I have noticed is that .nw is higher in file size but I will look. I've kinda grown accustomed to use .graal levels since..there is that 64kb upload limit on RC FTP :(

magicbud3344 08-26-2002 07:14 AM

merlin:

if you open a .nw level in a txt file it makes the shape of the level

Aruchinjiru 08-26-2002 12:46 PM

Quote:

Originally posted by magicbud3344
merlin:

if you open a .nw level in a txt file it makes the shape of the level

o.O oh cool I'll have to look at that. So basically you could edit the text file..to edit the level? :eek: :confused:

Graal2001_LAT 08-26-2002 01:49 PM

Quote:

Originally posted by magicbud3344
merlin:

if you open a .nw level in a txt file it makes the shape of the level

I didn't realize that, but I did see that it has all the scripts in the level. .graal is hieroglyphics when you open it in a text format.

Graal518 08-27-2002 05:52 AM

Quote:

Originally posted by Aruchinjiru


o.O oh cool I'll have to look at that. So basically you could edit the text file..to edit the level? :eek: :confused:

Yes, but you hafta know all the letters
for each of the tiles and stuff. It's easier
to use for editing script and stuff, rather
than to edit levels.

Er1c 08-27-2002 05:54 AM

Quote:

Originally posted by Aruchinjiru


o.O oh cool I'll have to look at that. So basically you could edit the text file..to edit the level? :eek: :confused:

Yeah... and make programs to edit levels for you.

This would add an NPC randomly into all the levels in the directory it's in (we used it for the kingdom trees on 2k2)
PHP Code:

<?php
if ($action=="generate" && $randmax>=&& sizeof($randtrees)>0) {
  
$dir opendir("./");

  
$filelist = array();
  
$filecount 0;
  while (
false!==($file readdir($dir))) {
    if (
is_file($file) && $file!=="index.php") {
      
$filelist[$filecount] = $file;
      
$filecount++;
    }
  }
  
closedir($dir);
  
printf($filecount " files recorded...<hr>");

  
$treetotal 0;
  
$treefile 0;
  for (
$cfile 0;$cfile<$filecount;$cfile++) {
    
$treetotal += $treefile;
    
printf("Working on file: " $filelist[$cfile] . "<br>");
    
$treefile 0;
    for (
$cy 0;$cy<64/8;$cy++) {
      for (
$cx 0;$cx<64/8;$cx++) {
        if (
1>rand(0,$randmax)) {
          
$file fopen($filelist[$cfile],"a");
          
$treetype $randtrees[rand(0,sizeof($randtrees)-1)];
          
$writetofile 
"NPC - " $cx*" " $cy*"
//Tree added by tree generator
if (created) {
  showcharacter;
  this.type = 
$treetype;
  setcharani realtree#v(this.type),;
}
join realtrees;
NPCEND
"
;
          
fwrite($file,$writetofile);
          
fclose($file);
          
$treefile++;
          
printf("Tree " $treetype " added to " $cx*"," $cy*" of " $filelist[$cfile] . "<br>");
        }
      }
    }
    
printf($treefile " trees were added to " $filelist[$cfile] . "<hr>");
  }
  
printf($treetotal " trees were added to " $filecount " levels.");
} else {
?>
<form method="get">
  <input type="hidden" name="action" value="generate">
  <br>
  Odds for a tree (every 8x8 tiles): 1 in <input type="text" name="randmax" value="25">
  <br>
  Select trees to choose from:
  <br>
<?
  for ($i = 1;$i<=20;$i++) {
    echo "Tree $i <input type=\"checkbox\" name=\"randtrees[]\" value=\"$i\"><br>";
  }
?>
  <br>
  <input type="submit" value="Generate">
</form>
<?
}
?>



All times are GMT +2. The time now is 06:51 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.