+ Reply to Thread
Page 39 of 40 FirstFirst ... 2937383940 LastLast
Results 381 to 390 of 399

Thread: Expression Gate Documentation

  1. #381
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: Expression Gate Documentation

    I think variable names should begin with a capital letter.

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  2. #382
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Fizyk View Post
    I think variable names should begin with a capital letter.
    Ah correct, I totally missed that.
    Variables must start with capital letter.

  3. #383
    Wire Noob RaverRux's Avatar
    Join Date
    Jun 2007
    Location
    England! ^_^
    Posts
    8

    Default Re: Expression Gate Documentation

    Ultra bump?

    What's the equivalent of "value range"? under "Gate: selection". Just as a test, I'm trying to create an expression chip for a auto turret, just copying from a tutorial, but I want it in an expression chip ;D

  4. #384
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate Documentation

    Not sure what "value range" is, but I'm guessing it is the equivalent of "clamp()"

  5. #385
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: Expression Gate Documentation

    value range in E2:
    Value=Value
    if(Value>Max){Value=Max}
    if(Value<Min){Value=Min}

    -----------

    Could somebody please help me with the entity find?
    I like want to make a target finder in E2 that would have 1 entity output, but it would have something like E:entity=find(A)
    so I like could make the A increment/decrement to find also other targets. A is a number

  6. #386
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Unsmart View Post
    value range in E2:
    Value=Value
    if(Value>Max){Value=Max}
    if(Value<Min){Value=Min}
    or just clamp(Value, Min, Max) :P

  7. #387
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Syranide View Post
    or just clamp(Value, Min, Max) :P
    nobody ever explained to me what clamp is, now I understand, thanks

  8. #388
    Wire Noob RaverRux's Avatar
    Join Date
    Jun 2007
    Location
    England! ^_^
    Posts
    8

    Default Re: Expression Gate Documentation

    ok. expressions seem to be, meh atm, i haven't tried clamp yet, but thx

  9. #389
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: Expression Gate Documentation

    You think there's a chance you might be able to add a feature someday that keeps the last expression you made in your editor when you exit and rejoin a game?

    There have been plenty of instances where the game crashed between saves, or I just didn't bother saving it at all because it wasn't something I had planned on using again.. and when I rejoin the game my editor is empty again and I lost all my work. Maybe just an autosave to a temp file every minute or something.

  10. #390
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: Expression Gate Documentation

    Quote Originally Posted by Beer View Post
    You think there's a chance you might be able to add a feature someday that keeps the last expression you made in your editor when you exit and rejoin a game?

    There have been plenty of instances where the game crashed between saves, or I just didn't bother saving it at all because it wasn't something I had planned on using again.. and when I rejoin the game my editor is empty again and I lost all my work. Maybe just an autosave to a temp file every minute or something.
    Yeah, I'll make it so that it saves to a temporary file every minute if something has changed to the expression.

    I know exactly what you mean as well, I virtually never ever saved a single expression I made, I either duped the contraption or just left it behind when I was done. So yeah, when something did happen in the mean time, it was all lost.

+ Reply to Thread
Page 39 of 40 FirstFirst ... 2937383940 LastLast

Similar Threads

  1. !!!OLD!!! Documentation of hi-speed devices
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 98
    Last Post: 02-10-2011, 07:41 PM
  2. !!!OLD!!! ZGPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 38
    Last Post: 11-29-2010, 04:54 PM
  3. !!!OLD!!! ZCPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 144
    Last Post: 09-05-2010, 03:46 AM
  4. Moongate Documentation
    By BlackNecro in forum Wiremod Addons & Coding
    Replies: 24
    Last Post: 04-22-2009, 01:32 AM

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