Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 ... 36

Author Topic: Modding Tool: Raw Explorer - Beta 13 - Updated 4/25/2013 - (It's BACK!)  (Read 128774 times)

Seraphyx

  • Bay Watcher
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #15 on: March 02, 2012, 06:41:28 pm »

Just tried it out with the Masterwork mod version of DF and it gives me an error saying that "MAKE_GLAZE_ASH" was not found

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

************** Exception Text **************
System.ArgumentException: Requested value 'MAKE_GLAZE_ASH' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at RawExplorer.RawLibrary..ctor(String rawDirectory)
   at RawExplorer.RawExplorer.parseRawFile()
   at RawExplorer.RawExplorer.mnuParse_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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: 4.0.0.0
    Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
RawExplorer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Seraphyx/Desktop/RawExplorer.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.


Logged

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #16 on: March 02, 2012, 06:58:20 pm »

Just tried it out with the Masterwork mod version of DF and it gives me an error saying that "MAKE_GLAZE_ASH" was not found

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

************** Exception Text **************
System.ArgumentException: Requested value 'MAKE_GLAZE_ASH' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at RawExplorer.RawLibrary..ctor(String rawDirectory)
   at RawExplorer.RawExplorer.parseRawFile()
   at RawExplorer.RawExplorer.mnuParse_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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: 4.0.0.0
    Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
RawExplorer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Seraphyx/Desktop/RawExplorer.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.



it may have been a bit early for me to make a download available.  I've only been working on this for a few hours now and haven't really done any internal testing at all.  I'll download that mod and use it as a testing target also.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #17 on: March 02, 2012, 06:59:59 pm »

I've got another teaser screenshot, this time showing a simple editor for the color raws (they were the easiest to do first).

Spoiler (click to show/hide)
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

Seraphyx

  • Bay Watcher
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #18 on: March 02, 2012, 07:11:15 pm »

Just tried it out with the Masterwork mod version of DF and it gives me an error saying that "MAKE_GLAZE_ASH" was not found

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

************** Exception Text **************
System.ArgumentException: Requested value 'MAKE_GLAZE_ASH' was not found.
   at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   at RawExplorer.RawLibrary..ctor(String rawDirectory)
   at RawExplorer.RawExplorer.parseRawFile()
   at RawExplorer.RawExplorer.mnuParse_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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: 4.0.0.0
    Win32 Version: 4.0.30319.239 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
RawExplorer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Seraphyx/Desktop/RawExplorer.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.



it may have been a bit early for me to make a download available.  I've only been working on this for a few hours now and haven't really done any internal testing at all.  I'll download that mod and use it as a testing target also.

No worries, it looks like it'll be a promising utility for modders.
Logged

Clover Magic

  • Bay Watcher
  • [NOCTURNAL]
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #19 on: March 02, 2012, 07:27:31 pm »

I've got another teaser screenshot, this time showing a simple editor for the color raws (they were the easiest to do first).

Spoiler (click to show/hide)

This makes your program entirely worth it.  Having to stare at the hex numbers and guess what exact shade a color is (heliotrope?) is a pain.   Watching this.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: New Modding Tool: Raw Explorer
« Reply #20 on: March 02, 2012, 07:34:35 pm »

One thing that I did see was that some of the raw files have an incorrect filename marker.  According to the wiki the first line of each raw file needs to match the filename of the file without the extension.  Several of the raws that you sent me have the wrong values. Specifically creature_vlk.txt, creature_varulf.txt, reaction_vlk.txt, and others.  I donít know if this is an actually something that the game checks or uses, but I thought that I would mention it since they aren't strictly following the format.
Those strings need to be there, but they do not need to match the filename - as far as we know, the only thing the game does with them is sort by them so that the raws are always loaded in the same order.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #21 on: March 02, 2012, 07:41:39 pm »

One thing that I did see was that some of the raw files have an incorrect filename marker.  According to the wiki the first line of each raw file needs to match the filename of the file without the extension.  Several of the raws that you sent me have the wrong values. Specifically creature_vlk.txt, creature_varulf.txt, reaction_vlk.txt, and others.  I donít know if this is an actually something that the game checks or uses, but I thought that I would mention it since they aren't strictly following the format.
Those strings need to be there, but they do not need to match the filename - as far as we know, the only thing the game does with them is sort by them so that the raws are always loaded in the same order.

Good to know.  The biggest challenge for me is going to be that I have never actually made a mod, and I'm not really interested in making them either.  I got curious, as geeks so often do, and poked around the raw folder one day.  I saw what a mess the files were and I've seen how frustrated people can get trying to make mods.  I figured there should really be an easier way.  I like making little utilities that help people do what they do easier.  Since I don't have much any modding experience I've been using the wiki and trying to parse the mod files of others in my head to make this work without actually knowing if I'm interpreting things correctly.  I may need to call on the experience of some of the more seasoned modders from time to time to make this program.
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #22 on: March 05, 2012, 12:22:42 pm »

Ok, I've got my first question for the mod experts.  Do tokens ever have a varying number of arguments, or are they always fixed?  For those of you who come from a programming background I can ask it another way, can they be "overloaded"?
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

RadHazard

  • Bay Watcher
  • Beware their adorable guns!
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #23 on: March 05, 2012, 01:39:24 pm »

Ok, I've got my first question for the mod experts.  Do tokens ever have a varying number of arguments, or are they always fixed?  For those of you who come from a programming background I can ask it another way, can they be "overloaded"?

Certain tokens I know can be like that.  The [BODY] token in creature definitions is a big one, as it can take any number of body part definitions.  There's also the [TL_COLOR_MODIFIER] token in creatures, which will take any number of possible colors. (e.g. [TL_COLOR_MODIFIER:GREEN:1] or [TL_COLOR_MODIFIER:GREEN:1:BLUE:1:BLACK:1])

Most syndrome tokens [CE_*] have several optional arguments, such as END:<number>, BP:<bodypart>:<tissue>, and the SIZE_DILUTES, RESISTABLE, and similar tags.  I can't think of any other tokens with varying numbers of arguments at the moment, but there may be some more.
Logged
To make magma-proof, set melting/boiling temperature higher than 12000. To make magma proof, set magma to be brewable.

Custom transformations got you down?
Here, have some ‼Science‼

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #24 on: March 05, 2012, 02:52:02 pm »


Certain tokens I know can be like that.  The [BODY] token in creature definitions is a big one, as it can take any number of body part definitions.  There's also the [TL_COLOR_MODIFIER] token in creatures, which will take any number of possible colors. (e.g. [TL_COLOR_MODIFIER:GREEN:1] or [TL_COLOR_MODIFIER:GREEN:1:BLUE:1:BLACK:1])

Most syndrome tokens [CE_*] have several optional arguments, such as END:<number>, BP:<bodypart>:<tissue>, and the SIZE_DILUTES, RESISTABLE, and similar tags.  I can't think of any other tokens with varying numbers of arguments at the moment, but there may be some more.

Thanks, that's exactly what I was looking for!

Now a question of terminology.  In a raw file that looks like this:
Spoiler (click to show/hide)

"ITEM" is commonly referred to as the object's "type" on the wiki, but I haven't seen a term for the "ITEM_PANTS" part.  I've been referring to this in code as the object's "sub-type".  Is that the correct term for this, or is there a more commonly used word to refer to this string?
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

RadHazard

  • Bay Watcher
  • Beware their adorable guns!
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #25 on: March 05, 2012, 03:56:08 pm »

Actually, I think ITEM_PANTS is considered the type.  ITEM seems to be closer to a "supertype" or something.  With other raw definitions, such as creatures, you put [OBJECT:CREATURE] at the top and then [CREATURE:<whatever>] at the beginning of the definition, so the type name is used in both instances.  With items, however, you have to put [OBJECT:ITEM] at the top and [ITEM_<something>:<whatever>] at the beginning of the definition.  Further supporting this is that when tokens ask for an item as an argument, they usually ask for them in the format ITEM_PANTS:ITEM_PANTS_PANTS, never specifying the ITEM part.  This is unique among item definitions, I think. Every other definition type seems to use the type name as the argument for the OBJECT token.

This is all just speculation on my part, however.
Logged
To make magma-proof, set melting/boiling temperature higher than 12000. To make magma proof, set magma to be brewable.

Custom transformations got you down?
Here, have some ‼Science‼

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #26 on: March 05, 2012, 04:01:39 pm »

Actually, I think ITEM_PANTS is considered the type.  ITEM seems to be closer to a "supertype" or something.  With other raw definitions, such as creatures, you put [OBJECT:CREATURE] at the top and then [CREATURE:<whatever>] at the beginning of the definition, so the type name is used in both instances.  With items, however, you have to put [OBJECT:ITEM] at the top and [ITEM_<something>:<whatever>] at the beginning of the definition.  Further supporting this is that when tokens ask for an item as an argument, they usually ask for them in the format ITEM_PANTS:ITEM_PANTS_PANTS, never specifying the ITEM part.  This is unique among item definitions, I think. Every other definition type seems to use the type name as the argument for the OBJECT token.

This is all just speculation on my part, however.

The language files seem to do it also.  Can you mix types within the same file?
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0

RadHazard

  • Bay Watcher
  • Beware their adorable guns!
    • View Profile
Re: New Modding Tool: Raw Explorer
« Reply #27 on: March 05, 2012, 04:07:48 pm »

You can't mix most types.  Items are, again, an exception.  Since they're all under the "supertype" ITEM, they can be mixed.  This is according to the wiki, since I haven't modded very many items myself.  I think I might have done it with a previous mod, but I don't have it anymore to check.
Logged
To make magma-proof, set melting/boiling temperature higher than 12000. To make magma proof, set magma to be brewable.

Custom transformations got you down?
Here, have some ‼Science‼

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: New Modding Tool: Raw Explorer
« Reply #28 on: March 05, 2012, 08:36:14 pm »

I will test this on my mod and report the findings.

ITEM:ITEM_TYPE it is btw. First that it is an item, then what the item is. Next one would be material type, last one is the actual material.

EDIT: Oh, and I do request a feature: Read out inorganic materials and make them sortable by different  tags/values. Very important to find out which metal is better for blunt or edged, and so forth.

And you, bradley, should maybe set another default folder for it, since it shows your full name.

EDIT2: Cant open my raw folder, but it is heavily modded anyway. Get a crash instantly
« Last Edit: March 05, 2012, 08:41:13 pm by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: New Modding Tool: Raw Explorer
« Reply #29 on: March 05, 2012, 11:02:26 pm »

EDIT: Oh, and I do request a feature: Read out inorganic materials and make them sortable by different  tags/values. Very important to find out which metal is better for blunt or edged, and so forth.

Your wish is my command! It needs a bit of work obviously, but it was pretty easy.
Spoiler (click to show/hide)

*EDIT*
Now with sortable columns...  Which was WAY more complicated than I was expecting.  It involved typing stuff like this:
Quote
Dim orderByExpression As Expression(Of Func(Of List(Of T), IEnumerable(Of T))) = Expression.Lambda(Of Func(Of List(Of T), IEnumerable(Of T)))(Expression.[Call](orderByMethod, New Expression() {sourceParameter, propertySelectorLambda}), sourceParameter)
« Last Edit: March 05, 2012, 11:29:14 pm by BradUffner »
Logged
Raw Explorer - Easily navigate and edit your raw files via GUI! - http://www.bay12forums.com/smf/index.php?topic=103360.0
Tile Genie - Merge multiple tilesets - http://www.bay12forums.com/smf/index.php?topic=77724.0
Pages: 1 [2] 3 4 ... 36