Blocktrix
Welcome, Guest. Please Login or Register.
11/28/21 at 12:15pm

Home Home Help Help Search Search Login Login Register Register


1  Blocktrix / Announcements / Blocktrix 1.0.0 Released
 on: 06/26/13 at 10:45am 
Started by strikelight | Post by strikelight
Finally, the day has come! Blocktrix 1.00 has been released!
 
What's that? No beta next to that 1? Wow... The first non-beta release of Blocktrix... (Let's wait and see how bad I messed this up -- jynx)
 
So yes, after many many many years, here is version 1.00. It's been a long and arduous journey, so let me just thank everyone for their patience, and let me especially thank all my alpha testers out there for their help and support throughout the years. Let me also thank all those that contributed in any other way, you all know who you are (Hint: See the blocktrix.txt file or the help file that comes with blocktrix).
 
With that bit of drama out of the way, here are the changes between 1.00 and 0.99beta:
 
Quote:

- Fixed access violation in lobby code
- Fixed possible endless loop during server operation?
- Added proper initial directories to start from in the Theme and Language Dialogs
- Fixed issue with far left/right drop (Reported By Teemu)
- Code cleanups
- Updated Tcl/Tk engine to 8.5.5
- Fixed violation error when theme file entry has been removed (Reported by JumbledMind)
- Modified theme image

 
I hope you all enjoy... For me, it's time for a long, well deserved break from coding blocktrix, barring any major problems. Have fun, boys and girls!
 
-sL
Reply Reply Quote Quote  

2  Blocktrix / Script Requests and Scripting Help / Re: Help writing script
 on: 09/14/08 at 4:17pm 
Started by erp-matic | Post by erp-matic
thx... my computer was being dumb b4.. i just reinstalled everything and was able to do it. thx!!!
Reply Reply Quote Quote  

3  Blocktrix / Script Requests and Scripting Help / Re: Help writing script
 on: 09/14/08 at 4:01pm 
Started by erp-matic | Post by strikelight
Notepad or wordpad... and just save with a .tcl extension.
Reply Reply Quote Quote  

4  Blocktrix / Script Requests and Scripting Help / Re: Help writing script
 on: 09/14/08 at 3:48pm 
Started by erp-matic | Post by erp-matic
yes i believe that makes sense... i cant figure out how to edit the .tcl files or create my own. How do i do so?
Reply Reply Quote Quote  

5  Blocktrix / Script Requests and Scripting Help / Re: Help writing script
 on: 09/14/08 at 12:47pm 
Started by erp-matic | Post by strikelight
Ok, I'll do this step by step, just so it's more instructional than just doing it for you.. I'll have it all together at the end of the post..
 
First, for your trigger, we would need to create an event binding for outbound partyline chat, which we would do as such:
 
Code:
addbind pmsgout erp:start
# erp:start will be our procedure bound to outbound partyline chat
 


 
Now, we will need to make the actual code to check the out-going text for the trigger:
Code:
proc erp:start {text} {
# grab the first 'word' of the outgoing text, and make it lowercase
  set cmd [string tolower [lindex [split $text] 0]]
# compare the cmd to what we are looking for
  if {$cmd == "/script1"} {
    # we'll need access to a global variable to check if script is running
    global erp
    # check that global variable now
    if {![info exists erp(timer)]} {
    # variable doesn't exist, or is currently turned off
      # create a timer event
      set erp(timer) [after 20000 erp:timer]
      # send a message saying we've started
      plinelog "Erp Timer started..."
    } else {
      # it was already on, let's turn it off
      catch {after cancel $erp(timer)}
      catch {unset erp(timer)}
      # display a message we've turned it off
      plinelog "Erp Timer disabled"
    }
  }
}
 


 
  Next, we'll need the actual timer code for the proc we are calling in the above code:
 
Code:
proc erp:timer {} {
  # define the lines of text
  set lines [list "line1 goes here" "line2 goes here"]
  # next loop through our lines
  foreach line $lines {
    # display the line
    plinemsg $line
  }
 # re-fire the timer
  global erp
  set erp(timer) [after 20000 erp:timer]
}
 


 
And done...
So putting it all together we get a small script like such:
 
Code:
addbind pmsgout erp:start
proc erp:start {text} {
  set cmd [string tolower [lindex [split $text] 0]]
  if {$cmd == "/script1"} {
    global erp
    if {![info exists erp(timer)]} {
      set erp(timer) [after 20000 erp:timer]
      plinelog "Erp Timer started..."
    } else {
      catch {after cancel $erp(timer)}
      catch {unset erp(timer)}
      plinelog "Erp Timer disabled"
    }
  }
}

proc erp:timer {} {
  set lines [list "line1 goes here" "line2 goes here"]
  foreach line $lines {
    plinemsg $line
  }
  global erp
  set erp(timer) [after 20000 erp:timer]
}

plinelog "erp-timer.tcl loaded"
 


 
Hope this helps...
Reply Reply Quote Quote  

6  Blocktrix / Script Requests and Scripting Help / Help writing script
 on: 09/14/08 at 12:13pm 
Started by erp-matic | Post by erp-matic
I'm looking for some help in writing a simple script...
 
How would i write a script that would output 2 lines of text every 20 seconds and i would beable to start and end the running of the script by typing "/script1" or something like that?
Reply Reply Quote Quote  

7  Blocktrix / Support / Re: Closing, please wait...
 on: 09/10/08 at 9:18pm 
Started by Villano | Post by Villano
You're right.
 
 lips sealed
 
Reply Reply Quote Quote  

8  Blocktrix / Support / Re: Closing, please wait...
 on: 09/08/08 at 10:07pm 
Started by Villano | Post by strikelight
I'm sure that is just an over exaggeration... That, or you simply press the on-off button to shut your PC down...
 
In any event, Blocktrix has been around for many years now... if there was something malicious built into it, as you seem to be implying, two things would have happened by now... one, this site would have long been removed.... and secondly, I'd have long been arrested and charged with some type of internet vandalism.  So please, think twice before issueing slander.  At the end of the day, you have the choice to use the application if you trust, or choose not to use it if you have distrust.  Simple as that.
Reply Reply Quote Quote  

9  Blocktrix / Support / Re: Closing, please wait...
 on: 09/08/08 at 9:42pm 
Started by Villano | Post by Villano
Understood, but it takes more than if I shut down the entire OS.
 
To me, that's suspicious.
 
Reply Reply Quote Quote  

10  Blocktrix / Announcements / Re: Blocktrix 0.99 Released
 on: 09/08/08 at 3:50pm 
Started by strikelight | Post by koruza_slo
^^ nice words
 
we should play some...
Reply Reply Quote Quote