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 - slyone

Pages: 1 [2] 3 4 ... 9
16
Current values as of 7.0.34.15.

Code: [Select]
;===========================================
; ** Setup  - Gump Values (Change After Every Patch)
;===========================================
;#CONTKIND/Gump Values for Client version 7.0.34.15 (Patch unknown)
set %GumpMainMenu    GRI      ; This is the login screen
Set %GumpWait        EKEC     ; This is the wait gump before next screen
Set %gumpShardSelect AAG      ; this is the shard select screen
set %GumpLogin       MSSC     ; this is the Character Selection Screen with NEW/DELETE Buttons
set %GumpNewChar     CVPD     ; this is the New Character Name and Clothing screen
set %GumpNewChar2    SNB      ; this is the New Character Trade Selection screen
set %GumpNewCharMap  WNAD     ; this is the New Character Map starting location screen
set %GumpGeneric     YYEB     ; this is the Vet Reward/6 month stat increase gump
set %GumpYesNo       YCND     ; this is the Logout - Okay Cancel gump

17
Stealth archive / Re: Question about Python tile functions
« on: February 01, 2014, 07:04:22 PM »
In standard embedded Python tile functions are fully working, if not please let me know and I will check it.
The same apply to the wrapper, that comment is not there if you get the latest version all the tile goodies are working fine. ;)

Thanks for the reply.  I'll make sure I'm using the latest rev.  Maybe I'm doing something wrong in my code.

18
Crafting / Re: Bulk Order Bribery
« on: January 26, 2014, 04:06:08 PM »
This a cool and useful tool .   Only problem I had was ghosting of deed.  .Thx for the build 

Thanks for the feedback.  Ghosting is an issue I haven't been able to totally solve on this one.

19
New member introductions / Re: Hi
« on: January 24, 2014, 08:17:50 PM »
I thought it might be good to update my intro a bit. So here it goes...

My best friend introduced me to UO back when the Second Age came out.  We started out on Chesapeake.  Over the years, my friend, my brother and I have shared a few accounts.  I think it was around pub 16 that we all got into a spawning guild.  Spawning is where I have the most fun in the game.  Eventually, my friend and my brother let their accounts go inactive and went to WoW.  I stuck around and still play when I can.

I got into scripting first as a user.  I started using scripts to train up magery on a few characters.  Then I began training up mules on a bunch of shards.  I also got a bunch of BOD runners up and running to farm barbed kits in my attempt to make my first millions.

I took a break from the game in high school and then picked it back up again when I got into college.  I took a two year break in college to go on an LDS mission to Norway.  When I got back I jumped right back into my schooling pursuing a degree in electrical engineering.  I also got my UO account back from my friend and jumped back into UO.  After taking a class in C programming and learning a bit of Matlab in school, I started tinkering with writing my own scripts.

Did I mention that my favorite part of UO is spawning?  At that time, the pen trick was alive and well and I trained up a couple necro peacers.  With multiple accounts at my disposal, I started writing helper scripts to do spawns.  That is where I started to change from just a script user into a script writer.

At some point, I ran into some folks who knew C2 and UOMaddog.  That is when I was introduced to a new world of scripting on WinUO and subsequently here at ScriptUO.  I don't know if I would have lasted this long playing UO without having been introduced to ScriptUO.  This community really is awesome.

School seems to be never ending (graduating with MEng in EE this Spring!).  Between school, work and family, I don't seem to have the time I used to to sit and play UO for hours.  Here at ScriptUO, I don't have the highest post count around but I try to contribute where I can.  I've submitted a few scripts here and have gotten good feedback about them.  Lately, I have been experimenting with Stealth.  I'm most familiar with Python so I have been trying it out with Python.  2014 may be the year where I dive into C# or Pascal.

Thanks for the great community here.  The last few years have been great and I'm looking forward to many more.

-S


20
Stealth archive / Question about Python tile functions
« on: January 19, 2014, 07:35:07 PM »
I read a couple posts about getting started with Stealth and they talked about writing a mining script as a start.  I set out to try and write a simple mining script using Python.  I found a couple examples in the Stealth forum which gave me something to start with.  But when I started testing my script, I noticed that all of my calls to functions referencing tile info were returning empty.  Then I took a look at Boydon's Python wrapper and saw the in the comments at the top:

Code: [Select]
# TO DO LIST:
# Tile wrapping is not complete yet. DO NOT USE THEM!

I take it that this comment goes for not only the wrapper but also the embedded Python in the Script.dll.  Anyone know if this is true?  If the tile functions are still in development then I'd definitely be interested in helping in any way I can.

Thanks,
S

21
Stealth scripts / Re: [V6, C#] oEggs - Orich's Medusa Egg Farmer
« on: December 27, 2013, 08:01:57 AM »
Since I am working on learning this Scripting Lanuage I was going to look at your script Orich but can not find it :)

Checkout C# project from the Source tab on the Orich's Scripts bitbucket.org page.

If you don't have Git, you can download the whole C# project on the Download tab.  Click the "Branches" tab on that page and select the .zip download format.

22
Off Topic / Re: Music - What are you listening to now? Part 2
« on: December 15, 2013, 05:10:37 PM »
Awesome

23
Stealth Client / Re: [Release] Stealth Python wrapper [UPDATED 2013-10-26]
« on: December 06, 2013, 03:20:21 PM »
Below are four changes to have the wrapper (dated 2013-10-26) more closely match the embedded python functions in Script.dll:

1)  Change
 
Code: [Select]
line 951:        def Script_ClientTargetResponse():  To
 
Code: [Select]
line 951:        def ClientTargetResponse():
2)  Add (starting at about line 2415)
Code: [Select]
  stealth_dll.Script_FindTypesArrayEx.argtypes = [[c_ushort], [c_ushort], [c_uint], [c_bool]]
  stealth_dll.Script_FindTypesArrayEx.restype = [c_uint]
  def FindTypesArrayEx(ObjTypes, Colors, Containers, Recursive):
      return stealth_dll.Script_FindTypesArrayEx(ObjTypes, Colors, Containers, Recursive)

3)  Change
 
Code: [Select]
line 2249:        def FindDistance():  To
 
Code: [Select]
line 2249:        def GetFindDistance():
4)  Change
 
Code: [Select]
line 3031:        def GetTargetStatus():  To
 
Code: [Select]
line 3031:        def TargetPresent():

Thanks,
S

24
Here are the current 7.0.32.11 values.

Code: [Select]
;===========================================
; ** Setup  - Gump Values (Change After Every Patch)
;===========================================
;#CONTKIND/Gump Values for Client version 7.0.32.11 (Patch unknown)
set %GumpMainMenu    GRI      ; This is the login screen
Set %GumpWait        WJEC     ; This is the wait gump before next screen
Set %gumpShardSelect SZF      ; this is the shard select screen
set %GumpLogin       ESSC     ; this is the Character Selection Screen with NEW/DELETE Buttons
set %GumpNewChar     CVPD     ; this is the New Character Name and Clothing screen
set %GumpNewChar2    SNB      ; this is the New Character Trade Selection screen
set %GumpNewCharMap  WNAD     ; this is the New Character Map starting location screen
set %GumpGeneric     YYEB     ; this is the Vet Reward/6 month stat increase gump
set %GumpYesNo       YCND     ; this is the Logout - Okay Cancel gump



I just checked and the gump values from client 7.0.32.11 match the ones I have for Client 7.0.34.2.

25
Misc. Scripts / Re: Scroll Binder
« on: November 24, 2013, 07:07:44 PM »
Tested works great. It made a few duplicates binders but maybe lag had something to do with that? Other than that it works smooth. I stopped and it and started again and again it starts over and works very smooth.

Good to hear that it worked smooth for you.  Enjoy.

-S

26
In order to not get the exception, I had to run the command prompt as Administrator.

I haven't figured why my Python version crashes...


Is there a way you could compile the ScriptDotNet.dll with .NET 4 instead of .NET 4.5 so that I can run it on my XP machine?

I tried to simply change the target framework, but very strange things start happening and the DLL does not function correctly.

My time these days is very limited, so I can't promise when, but I'll try again at some point.

Thanks for trying.

27
Thanks for the replies.

I tested... works fine.   Are you running ScriptDotNet.DLL that i uploaded yesterday?  If not, try it.

That exception happens in static classes ... need more information though.

Recommendations :

1.  Wrap the line in a try/catch
2.  Make sure you're running the program in the debugger (hit PLAY button) so you can see what's going on


Code: [Select]
try
{
   Console.WriteLine("Hex value from ScriptDotNet:  {0:X}", Stealth.Script_GetSelfID());
}
catch (TypeInitializationException ex)
{
   Trace.WriteLine(ex.InnerException); // System.Diagnostics
   throw;
}

I added in your try catch.  When I debug through the program, the exception doesn't get thrown.  When I try to run the executable from the command prompt, I get the following exception.

Quote
Unhandled Exception: System.TypeInitializationException: The type initializer for 'ScriptDotNet.Stealth' threw an exception. ---> System.TimeoutExcept
ion: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at ScriptDotNet.Stealth..cctor()
   --- End of inner exception stack trace ---
   at ScriptDotNet.Stealth.Script_GetSelfID()
   at csSteathScripts.Program.Main(String[] args) in c:\StealthUOClient\csSteathScripts\csSteathScripts\Program.cs:line 25

In order to not get the exception, I had to run the command prompt as Administrator.

I haven't figured why my Python version crashes...


Is there a way you could compile the ScriptDotNet.dll with .NET 4 instead of .NET 4.5 so that I can run it on my XP machine?

28
I also tried using Boydon's py_stealth.py wrapper and Stealth still seems to crash.

I'm using Stealth 6.1.4 in both instances.

I'm using Python 2.7 here.

Code: [Select]
from py_stealth import stealth_dll
print "%x" %(stealth_dll.Script_GetSelfID())


Code: [Select]
from py_stealth import Self
print "%x" %(Self())

29
My project builds fine and the first print statement prints "Begin" to the console but then an exception is thrown when I call:
Code: [Select]
Console.WriteLine("Hex value from ScriptDotNet:  {0:X}", Stealth.Script_GetSelfID());
The exception I get shows the following:
Quote
An unhandled exception of type 'System.TypeInitializationException' occurred in csSteathScripts.exe

Additional information: The type initializer for 'ScriptDotNet.Stealth' threw an exception.

I'm using VS2012 with .NET 4.5 and the latest ScriptDotNet.dll.

Is it something I am doing wrong? Has anyone else encountered this problem?

My Program.cs is below:

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using ScriptDotNet;
using ScriptAPI;

namespace csSteathScripts
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Begin");
            Console.WriteLine("Hex value from ScriptDotNet:  {0:X}", Stealth.Script_GetSelfID());
            Console.WriteLine("Hex value from ScriptAPI:  {0:X}", Self.ID);
            Console.WriteLine("All done");
        }
    }
}



30
New member introductions / Re: Hello everyone, a little bit about me !
« on: November 19, 2013, 06:13:47 PM »

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