gfxgfx
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
gfx gfx
gfx
487780 Posts in 425452 Topics by 8218 Members - Latest Member: zaq003 January 17, 2019, 07:49:15 pm
*
gfx*HomeHelpSearchCalendarLoginRegistergfx
gfx
Nox Forum  |  Nox  |  Map Editor (Moderator: KnightTemplar)  |  Map Editor FAQ
gfx
0 Members and 1 Guest are viewing this topic.       « previous next »
Pages: [1] 2 3 ... 5 Print
Author Topic: Map Editor FAQ  (Read 56513 times)
BURN3R
VIP
1337+
*****

E-Cock: 85
Offline Offline

Posts: 2674

Retired


WWW
« on: August 25, 2005, 11:34:36 pm »

I hope that all members will contribute to this FAQ so questions and answers to them will be easier to find from now on.

Questions

1. "Error reading thing.bin: Could not parse entire file"
2. Where can I get the latest Map Editor?
3. Why does my map crash people that join my game?
4. Why does my map crash sometimes on load and then other times it loads fine without any changes?
5. Why did i just walk straight through a statue or other solid object(s)?
6. Why do i play nox?
7. Why are my wall groups malfunctioning?
8. Why does my game crash after I added some items to a map?
9. How do I specify the amount of ammo of an item like Quivers and wands?
10. How do I play custom made maps?
11. What is Gvar2 and Gvar3? I see them a lot when looking at scripts in other maps.
12. What does Gvar mean? how is it diff from var?
13. What is a "Step ladder Function"?




Answers

1. Install the NoX Quest Update
2. You can download it here: http://zoaedk.noxforum.net/files/NoxTools-UZ.msi
3. The .nxz file generated by the Map Editor is probably corrupt, use this program to generate a working one.
4. Either the nxz is corrupt and you're hosting online, or you don't have enough variables in global to support all your Gvars (if you have 24 Gvar#'s then you must have 24 var#[1]'s in the second Global Function)
5. You have an object in your map that is using the wrong property but the map still loaded. It is found that in many different westwood maps that some objects have different properties than they "should." For instance i've seen obelisks with the interact property when it should be "normal" and weapons with the pickup property that should be "normal" also. I'm not sure why official maps are different.
6. Because it OWNZZZZZZZZZZ
7. There are currently some problems with wall groups, the best thing to do is to use 1 variable for every part of wall you want to script.
8. Make sure that there are 2 bytes (00 00) at the end of the modifier for every melee weapon and all armor. (probably for quest durability)
9. For a normal item the modifier should be "00 00 00 00 00 00"
Example : 20 in dec = 14 in hex. For a Quiver with 20 arrows and without enchants, the modifier is : 00 00 00 00 14 14
10. Download the map (usually comes compressed in a zip-file). Unzip and put the folder containing the map files in your "maps" folder where you have installed Nox.
Make sure that the name of the folder with the map files within has the same name as the name of the map files, or the map won't show up on the gamelist (e.g. if the map files are named "Hawaii.map" and "Hawaii.nxz" their folder has to be named "Hawaii").
11. Gvar2 is the variable for "True" and Gvar3 is the variable for "False" They are always that unless you make them something else, which isn't smart.
12. Gvar means "Global Variable." It can be used/changed in any function. Var is just a local variable that is only used in its own function. Var is actualy ver useful for making "Step ladder Functions."
13. It is a function that loops itself constantly and has conditional statements with vars used as counters. For example, if you want a sound to play 3 times with about 3 seconds in between, you would make only one function. looks like Code1 (Scroll down to see): (the 2 in the timer is the number of the function in the functions list)

Quote from: Code1
var0[1]
--------------------------
if var0 == 2 jump 10
if var0 == 1 jump 9
sound(soundname)
timer(120,2)                 
var0 = var0 + 1              (not sure but var0++ might work too)
return
:9
sound(soundname)
timer(120,2)
var0 = var0 + 1
return
:10
sound(soundname)
var0 = var0 + 1
return

This is a faster way and more efficient than making 3 different functions.

Contributors: BURN3R, RogueTeddyBear, FF&Invisible Point, Rohkm, ZoaEDK, Martin
« Last Edit: November 30, 2006, 03:18:10 am by zoaedk » Logged

Quote from: Phil Robb
The final months of Nox development were not happy times for many of us.
BURN3R
VIP
1337+
*****

E-Cock: 85
Offline Offline

Posts: 2674

Retired


WWW
« Reply #1 on: December 14, 2005, 06:01:12 pm »

Updated, thanks Teddeh!
« Last Edit: January 08, 2006, 07:55:56 pm by BURN3R » Logged

Quote from: Phil Robb
The final months of Nox development were not happy times for many of us.
De Touch
Apprentice
*

E-Cock: 4
Offline Offline

Posts: 55


Me Busy, Leave Me Alone


WWW
« Reply #2 on: January 08, 2006, 07:20:54 pm »

Hey do you have a list with functions you can use in scripting? Perhaps also with some explanation what the functions do? I recall something like that was posted on the NoxWiki, (http://axon.no-ip.org/NoxWiki/) but I can't find it now sad
Logged

 
Zoa
Administrator
Legendary
*

E-Cock: 74
Offline Offline

Posts: 1325



« Reply #3 on: January 08, 2006, 08:47:25 pm »

There is a list at http://axon.no-ip.org/NoxWiki/ScriptReference. However, it is out-of-date. It lists the function and its number of arguments.
Logged

"I see it all perfectly; there are two possible situations — one can either do this or that. My honest opinion and my friendly advice is this: do it or do not do it — you will regret both." -- Søren Kierkegaard
nero
NEWB


E-Cock: 0
Offline Offline

Posts: 2


« Reply #4 on: April 16, 2006, 06:53:26 pm »

hello!
I'm unable to download the program (for the .nxz files) but i need it very much!

There is always the message:
An Error Has Occurred!
It seems that you are not allowed to download or view attachments on this board. 

Need help ... its importaint
 cry
« Last Edit: April 16, 2006, 06:54:59 pm by nero » Logged
royal666
Legendary
*****

E-Cock: -1
Offline Offline

Posts: 775



« Reply #5 on: May 06, 2006, 01:52:44 am »

Q: Why do objects in my map not show up when I load the map
Logged

So as I was stumbling around for games like D2 and DS2 I find this game.  It looks amazing.  I watch youtube.  I cream my pants.  Now I'm here....typing this to you all.  I love you and your community.  Teach me the ways of the Jedi!!!!!
RogueTeddyBear
1337+
******

E-Cock: 226
Offline Offline

Posts: 2891


Plastic Sealed


WWW
« Reply #6 on: May 06, 2006, 03:28:49 am »

this can occur when you have invalid modifiers/object properties but the map still loads. It's a pain in the ass because  you'll make a lot of changes after the mistake and not know it...
Logged

I am teddy, ama
Nostros
NEWB


E-Cock: 0
Offline Offline

Posts: 4


« Reply #7 on: December 31, 2006, 05:24:06 am »

I am new to the whole Nox Map Editor program. I am used to have a palette of tiles and allowing myself to place them in certain ways to create an environment. I dont know how to script because I dont have the attention span to learn nor would I like to...hehe...There are certain questions that I have on the map editor if it's not to much of a bother to answer

1. Why I dont I have the ability to see the different tiles and the certain designs for the tiles?
2. Does each piece of wall/floor have to be scripted into the map editor?

I might have more questions, though, I dont have any on mind as of yet
Logged
BURN3R
VIP
1337+
*****

E-Cock: 85
Offline Offline

Posts: 2674

Retired


WWW
« Reply #8 on: December 31, 2006, 04:23:37 pm »

I am new to the whole Nox Map Editor program. I am used to have a palette of tiles and allowing myself to place them in certain ways to create an environment. I dont know how to script because I dont have the attention span to learn nor would I like to...hehe...There are certain questions that I have on the map editor if it's not to much of a bother to answer

1. Why I dont I have the ability to see the different tiles and the certain designs for the tiles?
2. Does each piece of wall/floor have to be scripted into the map editor?

I might have more questions, though, I dont have any on mind as of yet
Someone like you should probably just wait for the graphical map editor
Logged

Quote from: Phil Robb
The final months of Nox development were not happy times for many of us.
SamPanda
NEWB


E-Cock: 0
Offline Offline

Posts: 2


« Reply #9 on: May 07, 2007, 05:54:52 pm »

Q: Why does putting an item into my map cause it to crash whenever I load it on Nox?
Logged
Morden Tral
Administrator
1337+
*

E-Cock: 128
Offline Offline

Posts: 9684



« Reply #10 on: May 07, 2007, 06:22:36 pm »

A: It needs a mod box to work, mod boxs are the hex code that provide the stats and information dealing with the properties of the object.


The new map editor provides default mods for you...however they are not all uploaded yet. Try searching a WW map for the object and copying its mod box and pasting it into your object. When you gain experiance with it and read a few tutorials you will learn to edit it.

If you have the new editor you can find that object and right click on it and select "Export default". From then on when you create that object it will allready have a working mod box. Also for any object that has a mod box editor you will be able to edit its properties without knowing or using any of the hex code.


How to tell from old/new editors: When you right click an item the new editor shows the export default and export binary options as well as the normal options.
Logged

SamPanda
NEWB


E-Cock: 0
Offline Offline

Posts: 2


« Reply #11 on: May 07, 2007, 07:40:27 pm »

Okay, when I try to export default it has an Error message popup thingy, this is what it says:

Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue.
If you click Quit, the application will close immediately.

Could not find a part of the patch 'C:\Program Files\NoxTools\scripts\objects\defaultmods\greatsword.txt.

*The options are Details, Continue, Quit.*

DETAILS:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\NoxTools\scripts\objects\defaultmods\greatsword.txt'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path, Boolean append)
   at System.IO.File.CreateText(String path)
   at NoxMapEditor.MapView.contextMenuExportDefault_Click(Object sender, EventArgs e)
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItem.MenuItemData.Execute()
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Command.DispatchID(Int32 id)
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
MapEditor
    Assembly Version: 0.0.9.6
    Win32 Version: 0.0.9.6
    CodeBase: file:///C:/Program%20Files/NoxTools/MapEditor.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
NoxShared
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Program%20Files/NoxTools/NoxShared.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ScriptCompiler
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/NoxTools/ScriptCompiler.DLL
----------------------------------------
MapInterface
    Assembly Version: 1.0.2672.14554
    Win32 Version:
    CodeBase: file:///C:/Program%20Files/NoxTools/MapInterface.DLL
----------------------------------------
msvcm80
    Assembly Version: 8.0.50608.0
    Win32 Version: 8.00.50727.42
    CodeBase: file:///C:/WINNT/system32/msvcm80.dll
----------------------------------------
MapEditor.resources
    Assembly Version: 0.0.9.6
    Win32 Version: 0.0.9.6
    CodeBase: file:///C:/Program%20Files/NoxTools/ko/MapEditor.resources.DLL
----------------------------------------
MapEditor.resources
    Assembly Version: 0.0.9.6
    Win32 Version: 0.0.9.6
    CodeBase: file:///C:/Program%20Files/NoxTools/nl/MapEditor.resources.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.





Now I don't really expect you to read through ALL of that, but ... I'm a noob Sad


EDIT: I don't have a Object directory if that matters...
C:\Program Files\NoxTools\scripts

and inside scripts theres only functiondesc and functions..
« Last Edit: May 07, 2007, 07:43:10 pm by SamPanda » Logged
Morden Tral
Administrator
1337+
*

E-Cock: 128
Offline Offline

Posts: 9684



« Reply #12 on: May 07, 2007, 08:26:18 pm »

Yeah thats the problem..if you haven't download the mape ditor within the past week please do so..thta was a small error and unfortunally was there before the editor was autoupdating (it updates now).
Logged

ogrelord
Veteran
***

E-Cock: 1
Offline Offline

Posts: 276



« Reply #13 on: July 15, 2008, 03:15:27 am »

My GUI map isn't showing up, and I have searched this site non-stop and found no answers.
Logged

SirDandZ
NEWB


E-Cock: 0
Offline Offline

Posts: 7


« Reply #14 on: August 17, 2008, 04:01:34 pm »

Alright, this is probably a noob question and easily answered but then again you should like it if so... i spent awhile making a map and when i save it, and try and open it in nox it is not im my little list of maps?"

 evil
p.s.
that doesn't look evil it looks like a big guy with horns giving himself head
Logged
gfx
Pages: [1] 2 3 ... 5 Print 
gfx
Jump to:  
gfx
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.042 seconds with 23 queries.
Helios Multi design by Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!