Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ximan

Pages: 1 [2] 3 4 ... 7
16
New member introductions / Re: I Am Canukers Wife and I don't play UO
« on: January 27, 2014, 04:49:40 PM »
Welcome to SUO!

Funny story, you got me into trouble with my wife. She looked over my shoulder and was like WTF? I thought you were looking at scripting forums! Nice avatar btw!

Lolz, yes my four y.o. daughter used to like to look at all the avatars while I browsed the site.  She always liked TM's teaparty cooling tower catastrophe and the dole .gif.   Was able to block dxroms tumbler-based rainbowgasm.  Not anymore!

Welcome, if you're ever in Texas and need a bowline knot or a valdotain tresse straightened up, can probably help you out in a cinch...

17
Beverages / Re: Tequila
« on: January 27, 2014, 04:44:07 PM »
For sipping, not shots: silver patron, straight up, very cold ( between 0 F and slush ). 

18
General UO Chat / Re: Sampire or Whammy? You decide.
« on: January 11, 2014, 11:30:46 AM »
I'm not current with this stuff, so take what I say with a grain of salt.  However, I think the main reasons for having bushido were: activating the perfection system by honoring the opponent (needs min. 50 bushido skill), spamming lightning strike to maintain the perfection bonuses, and to be able to parry w/o shield.  Bushido skill also counts towards threshold for special move mana cost reduction.

http://www.uoguide.com/Perfection

19
Quote
I feel that I am to the point where I can follow and understand a good portion of scripts out there. Some people write really complex scripts or scripts that use terminology that doesn't seem to relate to the script but I guess is put in place so others cannot copy or use their code and those scripts I cannot learn from.

True there are some hard to understand scripts in the PSL, however the main purpose of publishing them is for people to use them.  Now that doesn't mean people encode their scripts to make them undecipherable. There are very few intentionally obfuscated scripts in the PSL (probably just prank scripts by Nilmer !), a lot of the really complex ones are that way because the authors were new to euox and were trying to make it act like a language they understood.  Just because they are complex doesn't mean are good scripting examples. Others do use some abstracting techniques that might remain opaque to someone without experience in programming.  If you ever happen across something that doesn't click, it never hurts to ask a question, lots of people obviously are willing to help out!

Pretty sure the only purposefully impenetrable code I've posted on easyuo was the following joke script (don't run it!).  See something like this just run away...

Code: [Select]
   set %e 7775
    set %peak 53
    set %q ea . k
    set %maximus 5
    set %or 4
    set %mode m
    set %a abcdefghijklmnopqrztuvwxsy:\/.?&"0123456789 , #spc
    
    gosub init 1337 mode
    while #true
    {
    set %z5 570917802538768004912152433248
    +3084387630663248787540064006387612309
    +1213876511040067875400338767875387670
    +9478750480912169442191219151107875976
    +8306691212191219114063066802554954006
    +4006387691219768308451293876091778753
    +876091741388004
     gosub run
    }
    stop
    
    sub run
    set %id id
    set %x 1
    set %z 6
    set %z4 590917802538768004912152433248
    +3084387630663248787540064006387612309
    +1213876511040067875400338767875387670
    +9478750480912169442191219151107875976
    +8306691212191219114063066802554954006
    +4006387652434006549591212304140638760
    +91778753876091741388004
    set %t
    set %t_
    set %t__
    while %x < %z
    {
     str left %z . %x 2
     set %zz #strres * %or
     set %y 3
     while %y < %zz
     {
       str mid %z . %x %y %o . r
       set %t_ % . #strres
       str %mode , %id % . a %t_ 1
       set %t__ %t__ , #str . res
       set %y %y + 4 % 444
     }
     set %q . %x %t__
     if %x > 3 2
       %q . 1 %q . 2 %q . 3 %q . %x
       set %q . %x
     set %t__
     set %x %x + 1
    }
    set %q1 %z10
    set %q2 %z20
    set %q3 %z30
    return
    
    sub init
    set %z1 079121512991215243976814069121
    set #lpc %e
    set %0 %1
    set %p %2
    set %z2 075243048048908408912151299121
    for %x 0 %p . %q
    {
     set %s . %x % . %x * % . %x
     set %s . %x %e , %s . %x
     str len %s . %x
     set %2 #strres - %maximus
     str mid %s . %x %2 4
     set %y 1 + % . x
     set % . %y #strres
     set %t % . %y
     set % . %t %x + 1
     set %s . %x
    }
    set %z3 170917140602403135064038760917
    +9121024030842304387609171926024030842
    +304
    return

Spend enough time scripting you'll understand it all...

20
I'm not dissing how you made the script or how you learn, simply trying to explain why the script has the structure it does.  I just recall it starting out as a collection of subs which we wired together as a state machine, and a few of those subs (the ItemXX subs) dictated how items would be selected at different skill levels.  At first it was felt it ran too slowly if it always used (e m 17 0 ) the appropriate skill craft tool before each make last click, so that was pulled out and replaced with the gump present/ not present code described above (or so I thought).

Like most people, not everything is obvious to me either, and I appreciate a good tinkerer!  Just apologizing that I couldn't keep 'fixing up' the code as you evolved it to be able to test under my ( runuo ) environment, it's diverged too much, lol.  Anyway tackle the issue mentioned in my previous post and it should run smoother.

21
The skeleton for this script was crisis' inscription trainer, which was a modification he did of someone's trainer, not sure of the provenance. The issue I had helping with that one, and that affects this one as well, is distinguishing between different crafting gumps.  Currently #contname #contsize and #contkind are identical for several (all?) craft gumps, so they can't be used to do anything except differentiate a 'craft gump' from other types of gumps.  Below is the original craft gump wait sub, more or less:

Code: [Select]
sub toolwait
  set %_tm #systime + ( %gumptimeout * 50 )
  gosub hardwait %gumpwait
  while #contsize <> %gumpsize
  {
    sleep 10
    if #jindex > %ji
    {
      for %_a %ji #jindex
      {
        scanjournal %_a
        if worn_out in #journal
        {
          return gettool
        }
        set %ji %ji + 1
      }
    }
    if #systime > %_tm
    {
      return false
    }
  }
return true

which is all fine.  The reverse problem, insuring a craft gump was not up, was solved by pre-positioning  the gump at a known safe location, then using the click command on the top left corner to see if #contsize changed.  I don't see any similar code in the current script, and without it, it'll generate a lot of items off of the wrong craft menu.

Actually telling the gumps apart would be the ideal solution, though I can't think of anything besides pixel scanning that will accomplish this in euox.  Didn't, then or now, have the time to undertake writing such a subroutine or related update tool.

22
Quote
Been running ver 1.5

Crisis would you mind posting or pm'ing me the current version?  Want to compare some parts with your earlier inscription script.

23
also, regarding the curse weapon call condition, if the character's status bar is not open then #hits won't be valid. Pretty sure that will cause the whole expression to evaluate as #false, thus skipping over calling the curse weapon sub.


24
Also I don't know the implication of a missing } (unmatched after the else) but you probably need to check this [ code ]

You're right gimlet, needs a closing brace, something got dropped since I posted on euo thread:

Code: [Select]
sub constants

  if %runuo
  {
    set %cwin 530_437      ; Carpentry window size
    set %tinkwin 530_437   ; Tinkering window size

    set %texitx 30
    set %texity 410
    set %tmlx 280
    set %tmly 410
    set %ttoolsx 30
    set %ttoolsy 110
    set %ttinkx 230
    set %ttinky 130
    set %tsawx 230
    set %tsawy 210
   
    set %cexitx 30
    set %cexity 410
    set %cmlx 280
    set %cmly 410
   
    set %in ItemRUO
  }
  else
  {
    ; EA OSI
    set %cwin 530_497      ; Carpentry window size
    set %tinkwin 530_497   ; Tinkering window size

    set %texitx 27
    set %texity 450
    set %tmlx
    set %tmly

    set %ttoolsx 30
    set %ttoolsy 110
    set %ttinkx
    set %ttinky
    set %tsawx
    set %tsawy
   
    set %cexitx 30
    set %cexity 410
    set %cmlx
    set %cmly
   
    set %in Item
  }
 
  ; initial board check, otherwise set in Item subs
  set %CraftingBoards 5

; ...


25
Yeah, I am thinking same things.   Are you using EN's scanner?  Wondering if you have the call for the bar scanner set up correctly and the bar is unobstructed for pixel scanning purposes.

set %scanbuffbar C:\EUO  ; placeholder for your example, or what you actually have?


26
Off Topic / Neighbor's lawn fire
« on: January 05, 2014, 09:14:51 AM »

Neighbor's teenage daughters decided to try and burn down the subdivision last night with some one a.m. fireworks.  Went outside to give them a piece of my mind over the noise, ended up putting out their lawn as they were nowhere to be found.  Wind was gusty, was glad they didn't have a lot of leaves (unlike mine).  Nothing like putting out a grass fire bare foot in 35 degrees with a 20" garden tile.  It was a toss up to call the fire dept or just deal with it, had it out in three or four minutes. No one ever came out or helped.  I've done plenty of dumb things in my youth, including causing a pasture fire with fireworks at my grandparent's farm, but I've never walked away from a blaze without putting it out or getting help to do so.  Next time maybe I'll just chuck a gas can or two over there to help things along!


27
Off Topic / Re: Registry Fix
« on: January 01, 2014, 09:11:36 AM »
To continue the off topic...  Computer science and education suddenly became important for me as my daughter is heading to high school next year.  Looking at all her options .. not a single school offers any real technology courses of any kind.  Even the best of the best doesn't offer anything. And i agree yes some kids will get involved in computer science out of pure interest.. but more would get involved if they had courses that followed a curriculum of interest.

Maybe look into:

http://www.codecademy.com/

I need to do some research in this dept as well, looking for stuff geared towards 5-10 yr olds.

off topic but there are some who make decisions in the education system who are against science, you should see what state of texas is doing, it's a war on science...

Most of the bad stuff is confined to history and social sciences, it's become a political battleground where the retards on both sides try to propagandize the youth.  Worst part about texas is the graft and expense involved in having unique books made for each freakin' subject specifically for texas schools.  The publishers egg on the holy wars since that means they get to turn over the book inventory faster...

I was discussing this with my brother in the uk and he just made me feel even worse .. he  informed me that starting next year (2014) the UK is making it mandatory that all kids learn computer programming in elementary,middle and high. A quick google and    Children will start learning to write code when they enter school the age of five, and will not stop until at least 16

WOW ow wow..

Here is the state-wide list of core computer classes supposed to be offered across texas.  Looks pretty thorough to me, if not overly specific in some aspects.  Not sure if I agree with order that some stuff is taught, seems a little drawn out.  K thru 12:

http://ritter.tea.state.tx.us/rules/tac/chapter126/index.html

edit:  added a response to EN

28
Off Topic / Re: Registry Fix
« on: December 29, 2013, 07:07:58 PM »
Where is my TI994A manual?

Did you have the expansion bay or speech module?  Met a guy who had the works, first case of computer envy!

The first computer board I designed was based on a 6502 with only 1K or RAM.

All hail Bill Mensch, lord of the embedded 6502, and designer of cpu's I actually understood.  Learned some assembly on the 6502 but didn't create any hardware with it (though did dream alot about expanding the C64).  Later, did use the somewhat related 68HC11 for digital design projects in college and afterwards.

Actually the first I designed was a home made CPU with a custom microcode instruction set.

Brainiac!!!

lol    I started out  writing code for an 8k machine what bliss when i got upgraded to 16k.

Wow, was that an Apple II or something more esoteric?  I'm pretty sure even the Commodore PET and TRS-80 both had at least 32k.  My mother was cleaning out the attic over xmas, sent me home with a couple old books:

Dude, we're officially old!

Pre Apple II, pre commodore, pre  ZX Spectrum (UK only ??) ... in fact the first model i used might have been only 4k..  memory fades on details, based on z80 processor.   I do remember writing page swapping code to load more code from disk ....   It was a machine probably only available in the UK, mainly in schools.   From a company called Research Machines...

http://www.theregister.co.uk/Print/2013/11/13/archaeologic_the_research_machines_380z_story/

Had to put together an ancient history timeline, though order of introduction may have been different in UK, don't think the 380Z was offered here.

1977 Apple II, TRS-80, Commodore PET 2001
1978 Commodore CBM 3000 series (Europe), Research Machines 380Z
1979 Apple II Plus, TI-99/4, TRS-80 II
1980 Commodore PET 4000 series, Commodore VIC-20, TRS-80 III, TRS-80 Color 1
1981 IBM PC, TI-99/4A
1982 ZX Spectrum, Commodore 64, Link 480Z
1983 Apple IIe, IBM PC XT, TRS-80 Model 4, TRS-80 Color 2
1984 Apple Mac, Apple Mac 512k, IBM PC AT
1985 Amiga 1000, Commodore 128
1986 Apple Mac Plus, IBM PC XT 286, TRS-80 Color 3

Now to go way off topic....

Something I just discovered and am still in shock over is I started using the above machines back in the 80s and i did computer science in high school at the USA equivalent of AP+/first year college course (UK o-level then A-level).  I just found out and was majorly shocked that here in south Florida that computer science even tho "its on the books" as a high school course, it is in fact not available in any high school in the whole of south Florida besides one private school. And last years enrollment was 9 kids and this is not an AP class but a beginner class, theirs no AP computer science classes at all.   This is  approximately the 7th largest school district in the USA and their is only 9 kids studying computer science at the most basic level WTF !!!!

I mean i knew the USA was behind in many areas of education. Generally USA students being approx 1-1.5years behind uk students at the end of high school.   But this is ridiculous,  a course i did approx 30 years ago is still not available !!!  Is this just a South Florida thing or is this all over the USA.

My first programming was in '81 doing basic on TRS-80 II (local college summer camp course) and PET 4032 hardware (jr high).  Our high school which did have AP calculus and physics, didn't have any computer classes whatsoever, took typing to burn up electives (and my WPM has never improved since, lol).  Pretty sure they didn't have computer or typing courses when my siblings went through either; they'd been replaced with 'keyboarding' wtf!  These days it really depends upon school district whether they have computer classes and if so, if they are required courses or electives.  Plano, TX high school has AP CS courses, but that may be the due to local influence of Texas Instruments.  Will ask my bro-in-law what the high school he teaches at offers.

To try and counter this my kids are now participating in a local http://coderdojo.com/  but really that's not good enough but at least is something.  Not really sure what else to do at the present time open to suggestions...

Well, you've figured out that our public schools are merely a warehousing system for the children of working adults.  Beyond basic reading, writing, and arithmetic, they've never really incorporated even the most ubiquitous of technologies into the core curriculum.  Yes, think of the children: the less they truly understand, the easier they are to manipulate and propagandize later in life.  If that sounds cynical, then you may not believe that I've seen positions advertised by microelectronics manufacturers that specifically disallow candidates with more than a high school education.  I've watched whole IT departments be outsourced to Asia, trained by remaining skeleton staff before they too are laid off or replaced by more expensive H1B labor.  Read the outdated NSF Engineering Workforce report; even in '99 (peak of computer and IT-related employment) nearly 40% of electrical and computer engineering degree holders didn't even work in an engineering occupation at all.

While I understand that programming is a specialty, I can't think of a single field where basic background in measurement, computation and automation methods wouldn't be worthwhile.  That said, it stands to reason that those interested will seek out information, and if there is one field with a plethora of information available online, it is computer science.  Hardest part is narrowing down the volume of material to get a good overview of the basics, without getting caught up specific tech like ordering a raspberry pi and downloading a 760 page ARM cpu manual...

29
Off Topic / Re: Registry Fix
« on: December 27, 2013, 04:10:44 PM »
lol    I started out  writing code for an 8k machine what bliss when i got upgraded to 16k.

Wow, was that an Apple II or something more esoteric?  I'm pretty sure even the Commodore PET and TRS-80 both had at least 32k.  My mother was cleaning out the attic over xmas, sent me home with a couple old books:



Dude, we're officially old!

30
Off Topic / Re: Ugh Migrane
« on: December 11, 2013, 03:58:50 AM »
Already tried cold, hot shower, nettie pot, ugh this sucks.

Personally would never use a nettie pot-  great way to get bacterial encephalitis.  If you do see a doctor, be sure to let them know you've been using one.

Pages: 1 [2] 3 4 ... 7