Scripts Placement

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Scripts Placement

Post by Zaksmeer »

where do I place my scripts at?
which ones will work here?

And I have deco files from RunUO, will they work here?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Hello, and welcome :)

Neither scripts nor decoration files from RunUO will work with UOX3, as both use separate formats for both scripts (.js-files in UOX3), item templates (.dfn files in UOX3) and world-files (.wsc files in UOX3).

In theory it should be possible to write a converter of sorts to convert at least basic decorations and such to UOX3's world-file format, but as of right now no such tool exists.
-= Ho Eyo He Hum =-
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Post by Zaksmeer »

Is there a place to download more scripts?
Is there someplace to tells you how to write you own scripts for this?
And what format are the scripts you use, ie: c+, java, or ????
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

1) The JavaScript Vault (for JavaScripts) and The DFN Vault (for items/npc/other DFNs)
2) The Scripting Department has a bunch of sticky-threads with links to general JavaScript guides and such - though a lot of those also include browser-specific JavaScript which won't work in UOX3 since it's not a web-browser :P
3) The DFN files (item/npc/region/spawn/etc-templates) uses a text-format specific to UOX3, while the harder scripting stuff is done in UOX3's C JavaScript-engine. (Example of such a JavaScript for UOX3)
-= Ho Eyo He Hum =-
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Post by Zaksmeer »

ok, where do I put my "custom" scripts at?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

For JavaScripts, they should be inside the UOX3/JS/ folder somewhere, and then referenced in jse_fileassociations.scp (use your favorite texteditor to edit).

For DFN files, as long as they're somewhere inside the correct subfolder (uox3/dfndata/ or uox3/dfndata/npcs/ or uox3/dfndata/items/ etc) UOX3 will be able to read them, so you can create your own custom folders and put them in there.
-= Ho Eyo He Hum =-
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Post by Zaksmeer »

Obviously I have more work to do.
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Post by Zaksmeer »

What about windows script component files. From the world deco files that I downloaded from the uox3 website?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

They're not really windows script component files - they're just ascii txt files with a weird file extension :P They go in the UOX3/shared/ folder (Warning! Will overwrite any existing items/chars you might have created!)
-= Ho Eyo He Hum =-
Zaksmeer
UOX3 Neophyte
Posts: 32
Joined: Thu Nov 22, 2012 9:33 am
Has thanked: 0
Been thanked: 0

Post by Zaksmeer »

Did that, but the deco doesn't appear.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Make sure all the .wsc files are in the root UOX3/shared/ folder, and not inside a subfolder like UOX3/shared/default world files/. Also, make sure to do this while UOX3 is shut down - otherwise it will just overwrite the files on the next worldsave with whatever it has loaded in memory.
-= Ho Eyo He Hum =-
Post Reply