+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Simulate Data - STool

  1. #1
    Newbie Programmer ZeikJT will become famous soon enough ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,394

    Default Simulate Data - STool

    SVN Now available:
    http://simulatedatastool.googlecode.com/svn/trunk/SimulateDataSTool

    I have been mulling the idea over for quite some time now but I finally sat down and got to work on it. Essentially this tool sends "fake" data because it isn't coming from any component, but it works just like the data would.

    ----Massive props to the Wire Team, I used the wire tool as a base, I needed the Inputs scrolling and data gathering----

    I call it the Simulate Data STool. It's great for debugging because you don't have to spawn constant values for numbers, strings can be sent, as can vectors and entities. To send entities you feed it the EntityID and it will automatically (provided an entity exists by that id) transform the ID into entity data. I know the color menu is a bit overkill for the vectors, but colors can come in handy and it's a nice way to display the three components of a vector.

    If you use this on an input that already has another connection it will sever that one first and then send the data. So don't use this thinking it will preserve your original connections.

    I find it very useful (now that it actually works and checks the variable type ) so I thought I'd share it with you all. Please report any errors you get if any.
    It will be in your Wire - Tools tab called "Simulate Data"
    Attached is the .zip, it goes in your addons folder

    Screenshot of what you'll see when using it, the exp2 chip has been written to demo the tool writing to it:


    Plans for future additions:
    -Array Support (the framework is there, but the arrays are flawed)
    -Change table support to use just the string, not create soon-to-be useless tables (in the works now)

    Recently Added:
    -Angle support
    -Dynamic table support (Using an input string and a string parser)
    Attached Files
    Last edited by ZeikJT; 02-03-2009 at 09:36 PM.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  2. #2
    Lurker Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    655

    Default Re: Simulate Data - STool

    Thanks so much, this is a much needed addition.

  3. #3
    Expressionism 2.0

    Syranide has disabled reputation Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,503

    Default Re: Simulate Data - STool

    Ah, that it actually really really nice!

    I haven't tested it, but I'd definately vote this onto the SVN as a proper tool if there aren't any problems with it. Would definately help test and debug.

  4. #4
    Newbie Programmer ZeikJT will become famous soon enough ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,394

    Default Re: Simulate Data - STool

    Quote Originally Posted by Whodunnit View Post
    Thanks so much, this is a much needed addition.
    Yeah, that's why I took the time to make it! I knew It'd have a lot of uses.

    Quote Originally Posted by Syranide View Post
    Ah, that it actually really really nice!

    I haven't tested it, but I'd definately vote this onto the SVN as a proper tool if there aren't any problems with it. Would definately help test and debug.
    Please do test it! That's what I need, feedback. As far as I tested it it worked like a charm. I don't think multiplayer should affect it either as it is a stool.
    Last edited by ZeikJT; 01-31-2009 at 03:38 AM.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  5. #5
    Lurker Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    655

    Default Re: Simulate Data - STool

    only tested integeers, but worked fantastic, I'm binding this to a key along with duplicator , weld, wire, tool search, remover and debugger.

  6. #6
    Newbie Programmer ZeikJT will become famous soon enough ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,394

    Default Re: Simulate Data - STool

    Quote Originally Posted by Whodunnit View Post
    only tested integeers, but worked fantastic, I'm binding this to a key along with duplicator , weld, wire, tool search, remover and debugger.
    Hmmm, it's not listing a download which could mean you downloaded a version in between first post time and this more-finalized one. Re-download just in case.

    I had a moment of panicked re-uploading because there's was something I had left in the zip which was wrong.

    EDIT: I might just put up an SVN of my own for it... what do you think?
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  7. #7
    Lurker Whodunnit will become famous soon enough Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    655

    Default Re: Simulate Data - STool

    How hard is it to create an svn? I wonder if i could use this for mods in other games...

    I will redownload this tomorrow morning.

  8. #8
    Newbie Programmer ZeikJT will become famous soon enough ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,394

    Default Re: Simulate Data - STool

    Quote Originally Posted by Whodunnit View Post
    How hard is it to create an svn? I wonder if i could use this for mods in other games...

    I will redownload this tomorrow morning.
    Super simple. Just use something like google code. You register a new project, get your svn upload password and you're good to go.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

  9. #9
    Wire Sofaking Bobsymalone will become famous soon enough Bobsymalone's Avatar
    Join Date
    Jul 2008
    Posts
    777

    Default Re: Simulate Data - STool

    Very nice! I'm a bit apprehensive about downloading it now though because I can see it being added to the SVN. I might do anyway though!

  10. #10
    Newbie Programmer ZeikJT will become famous soon enough ZeikJT's Avatar
    Join Date
    Dec 2008
    Location
    California
    Posts
    1,394

    Default Re: Simulate Data - STool

    Updated! Apparently Arrays don't work though let's hope those get fixed soon.

    Automatic Data Type matching, automatically assigns the right data type. Good for ease of use, but makes it easier to write to a port you didn't intend. So I've left it as an option.

    Angle support! Uses same input as vectors, so use the color values.

    Dynamic Table Support V1! I hope to revamp it, but I wanted to make sure the basic concept worked. The syntax is pretty straight forward I hope:

    Entries in a table are separated by these |
    To index one object in another simply use an =

    Example of indexing a number with a numeric index:
    Code:
    1=1
    
    Now lets add to it, how about a string indexed by a string?
    Code:
    1=1|'hello'='screw off'
    
    That was easy, how about adding a vector indexed in a numeric index?
    Code:
    1=1|'hello'='screw off'|123=(1.3,233,36.2)
    
    If you have any questions please ask! I know it's a loaded update!

    EDIT: Oh and the expression2 table compatibility is to make the tables index using the standard exp2 readable format. It adds an n to the front of number indexes, s to the front of string indexes, and v to the front of vector indexes.
    Last edited by ZeikJT; 02-01-2009 at 12:15 AM.
    Against stupidity the Gods themselves contend in vain.
    -Friedrich Schiller

    The flame puts me in the mood to "Do it!".
    -Dart, Legend of Dragoon

+ Reply to Thread
Page 1 of 2 1 2 LastLast

LinkBacks (?)

  1. 01-27-2010, 05:34 AM

Similar Threads

  1. Replies: 12
    Last Post: 01-29-2009, 07:03 PM
  2. Replies: 3
    Last Post: 06-24-2008, 09:34 AM
  3. Wired Data Plate? Non persistant data transferrer?
    By cpf in forum Ideas & Suggestions
    Replies: 6
    Last Post: 12-01-2007, 10:23 AM
  4. Conole error spam with Data Plug STool
    By Infinity in forum Technical Support
    Replies: 1
    Last Post: 05-27-2007, 08:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots