Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 29 30 [31] 32 33 ... 37

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

Dragoon209

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #450 on: December 21, 2012, 03:13:47 pm »

Bug Report: When trying to use the Workshop Designer, I am getting an Unhandled Exception.

Spoiler: Detail Log (click to show/hide)


Other than that, this has been a fantastic tool to add and change things!
Logged
Check out my mini-mods:
Upgradable Leather Tiers
Block Crafting Workshop

Have you played Webfort yet?  It's a way to play Dwarf Fortress in a web browser with your friends!  Come check it out at:
Community Web Fortress

CheatingChicken

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #451 on: December 27, 2012, 12:09:53 pm »

I have got just one small question. I am trying to wrap my mind around the scripts. I try to make every single creature in the game tameable and trainable. I made a small script that does not work, but i cant figure out why
Code: [Select]
using RawExplorer;

public class Script : ScriptBase
{
    public override void runGlobalScript(RawLibrary library)
    {
        foreach (RawObject obj in library.getAllObjects())
        {
            obj.removeToken("PET");
            obj.removeToken("PET_EXOTIC");
            obj.removeToken("TRAINABLE");
            obj.removeToken("TRAINABLE_WAR");
            obj.removeToken("TRAINABLE_HUNTING");

            obj.addToken("PET");
            obj.addToken("TRAINABLE");
        }
    }
}
In theory it should first wipe all trainable and pet availabilities, then add them again. what am i doing wrong here?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #452 on: December 28, 2012, 06:55:05 pm »

Well, I don't see any reference to creature raws in your script...

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #453 on: December 31, 2012, 10:53:24 pm »

Sorry about the delay in answering questions, I've been out of town for the holidays.
I'm going to start taking a look at these bug reports and try to get some fixes out.
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

CheatingChicken

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #454 on: January 01, 2013, 10:03:17 am »

Well, I don't see any reference to creature raws in your script...
And how would I need to refer to those?
I based it on the aquifer script that was already there, as far as i can tell that did not refer to any stone raws either.
Logged

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #455 on: January 01, 2013, 02:54:05 pm »

I have got just one small question. I am trying to wrap my mind around the scripts. I try to make every single creature in the game tameable and trainable. I made a small script that does not work, but i cant figure out why
Code: [Select]
using RawExplorer;

public class Script : ScriptBase
{
    public override void runGlobalScript(RawLibrary library)
    {
        foreach (RawObject obj in library.getAllObjects())
        {
            obj.removeToken("PET");
            obj.removeToken("PET_EXOTIC");
            obj.removeToken("TRAINABLE");
            obj.removeToken("TRAINABLE_WAR");
            obj.removeToken("TRAINABLE_HUNTING");

            obj.addToken("PET");
            obj.addToken("TRAINABLE");
        }
    }
}
In theory it should first wipe all trainable and pet availabilities, then add them again. what am i doing wrong here?

You need to add the 2nd argument for .addToken so that it looks like this:
obj.addToken("TRAINABLE", "");
You should also check the object type to make sure it's a creature or else your script will add the tokens to entities, buildings, etc.

I'll try to add some better error reporting to the script runner so that it actually shows the error instead of just "script failed".  I'm still not really happy with the way scripting works. it's way too complicated at the moment.  It's something I want to work on when I have more time.
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: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #456 on: January 01, 2013, 02:59:17 pm »

Fully corrected script would look like this:
Code: [Select]
using RawExplorer;

public class Script : ScriptBase
{
    public override void runGlobalScript(RawLibrary library)
    {
        foreach (RawObject obj in library.getAllObjects())
        {
if (obj.objectType == Common.ObjectType.CREATURE)
{
obj.removeToken("PET");
obj.removeToken("PET_EXOTIC");
obj.removeToken("TRAINABLE");
obj.removeToken("TRAINABLE_WAR");
obj.removeToken("TRAINABLE_HUNTING");

obj.addToken("PET", "");
obj.addToken("TRAINABLE", "");
}
        }
    }
}
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

CheatingChicken

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 11 - Updated 11/20/2012 - (I forget)
« Reply #457 on: January 02, 2013, 09:23:08 am »

That looks good, thank you :)
Logged

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #458 on: January 30, 2013, 01:35:26 pm »

Beta 12 has been uploaded, fixing the reported bugs.
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

Dragoon209

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #459 on: January 30, 2013, 05:07:12 pm »

Thank you!  I've been looking forward to this!  It simplifies my job a lot.
Logged
Check out my mini-mods:
Upgradable Leather Tiers
Block Crafting Workshop

Have you played Webfort yet?  It's a way to play Dwarf Fortress in a web browser with your friends!  Come check it out at:
Community Web Fortress

Thundercraft

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #460 on: February 10, 2013, 12:32:23 pm »

Oh wow! This thing looks like it has everything but the kitchen sink!

I was looking forward to trying this out... until I noticed that it requires NET 4.0...

That's a deal-breaker for me. At the moment I'm still on my Win XP laptop and there's just no way I can squeeze out another 1 GB of space on my C: partition for NET 4.0! (I hate Microsoft... :( ) Most of my remaining space is on other partitions.

(And before anybody tries to correct me on the requirements for NET 4, I've checked. It requires roughly 1 GB of room to install. It requires less after installation is over.)
« Last Edit: February 10, 2013, 12:34:06 pm by Thundercraft »
Logged

Tsuchigumo550

  • Bay Watcher
  • Mad Artificer
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #461 on: February 10, 2013, 01:27:34 pm »

I have the same problem, my computer seems to hate the most recent .NET and refuses to get it, delete the bad one, or anything.
Logged
There are words that make the booze plant possible. Just not those words.
Alright you two. Attempt to murder each other. Last one standing gets to participate in the next test.
DIRK: Pelvic thrusts will be my exclamation points.

Thundercraft

  • Bay Watcher
    • View Profile
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #462 on: February 11, 2013, 01:16:56 pm »

Well, this is interesting...

I was reading the Perfect World thread and I noticed it also requires .NET 4.0 (as do a few other utilities), when I noticed a mention for a substitute for .NET 4.0 for Linux:

http://www.mono-project.com/Main_Page

I checked it out and, apparently, they have a distribution for Windows flavors! :o It's much smaller, too: Download is less than 80 MB. Though, it sounds like it may also need the "Gtk# for .NET" (also on their download page).

I may have to clear up a bit of disk space. Or not. But I think I'll see if it works for me.

@ Tsuchigumo550
I think you'd have to uninstall your bad install before trying a new install or this NET alternative. Perhaps a 3rd party uninstall tool like "IOBit Uninstaller" would do the trick? (I think Norton's uninstaller is the best, though I haven't used it in several years.)

Or ask in a Microsoft/Windows computer forum? I'd recommend asking about it on MSFN.org boards (Where People Go To Know), but it seems their site is temporarily down. Maybe try computing.net?
« Last Edit: February 11, 2013, 01:30:11 pm by Thundercraft »
Logged

BradUffner

  • Bay Watcher
  • BradUffner has begun a mysterious construction.
    • View Profile
    • Gump Studio
Re: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #463 on: February 11, 2013, 01:19:41 pm »

If you are able to get Mono installed let me know how well it runs Raw Explorer,  I haven't been able to do any testing with it myself.  It will be good information to expand the requirements section with it if works.
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: Modding Tool: Raw Explorer (Beta 12 - Updated 1/30/2013 - (Bug Fixes)
« Reply #464 on: February 26, 2013, 03:32:17 am »

I'm currently working on the back-end database, trying to get it ready for the next version of Dwarf Fortress.  Unfortunately when I designed the database I forgot to plan for multiple versions of DF, each supporting different tokens.  Once that's done I'll be jumping back in to the client side of Raw Explorer and adding some new features.  I found what looks to be a fairly nice .net library for running javascript, so I'll be trying to make that available for Raw Explorer scripts instead of C# and VB.

Now is a great time to suggest some new features!
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 ... 29 30 [31] 32 33 ... 37