RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

TM Skill System 3.0

TMSTKSBK

Lord
TM Skill System 3.0

THIS THREAD HAS MOVED:
It can now be found @: http://www.runuo.com/forums/showthread.php?p=544416

[v3.0.3]

For RunUO 2.0 RC1+




!!--BUGFIX INFORMATION--!!

Known Problems:
Problem with gump sending code may cause skill gump to be sent (blank) even when skills are disabled.
Strange crash problem when using the gumps in TMSS 3. This problem is not resolved, and requires more information.

Current Version:
v3.0.3r6 (bugfix release)

GOAL OF THIS SYSTEM:
Giving the best Skill Stones, Balls, Gates, Tickets, and other solutions to your startup process of any system on RunUO.

Intro:

After many hours/days/months of work, I am pleased to bring you the Third version of my skill and stat system.

New features include:
Profiles - Set up different profiles for different races, limit skills and stats for different profiles.

New Gumps - Brighter, wider, and easier to read, the new TMSS gumps are the most easy-to-use gumps yet. Skills are now in alphabetical order, and easy to select, using either a checkbox paradigm, or a text box paradigm, with a maximum sum.

Control Center - Well, for starters, it works. Then there's the fact that it might be a revolution in gump design. (Players won't notice...it's the code that counts :p)


The Basics:

What's this?
TMSS 3 is primarily a start system for shards that wish to give new players a certain skill or stat level at start. It can also be used to give veterans (and players in general) several bonuses related to skills. TMSS 3 is also the successor to the popular TM SkillStat System 2. It is a highly improved, greatly debugged system. The system also allows you a lot more flexibility in what you want to do with TMSS.


Why use TMSS 3.0?

TMSS is the only system currently available that allows admins to implement skill & stat setting for both the new player and the veteran, while keeping a wide array of options open to each shard. TMSS is easy to tailor to your shard, with options for only allowing new players to use it, allowing new and old players to use it from different portions of the system, and for giving out skills and stats as rewards.​
What can I do with TMSS 3.0?
TMSS 3.0 allows you to administrate a shard-wide system for the rapid setting of skills and stats. The system's settings can easily be changed to fit your shard's needs, whether the shard is PvP, PvM, RP, or any custom format. If you need something for your shard that TMSS does not offer (related to skills and stats), feel free to ask me for it.
System Key Features:
  • Fast & Easy Deployment
  • Robust Options
  • Easy - to - Use
  • Expandable
  • Lightning Support
  • Customizable to fit any shard's style of play.
  • Requests Honored
Current Application Extensions: (See Post 2)
  • Skill-checking moongate. Don't let them bother you after they leave the start zone.
  • Skill Gates. Don't like Skill Stones? S'ok. Use the Skill Gates.
  • Skill Balls. Don't like Either of the others? Use Skill Balls.
  • Standalone Tickets: Tickets that do not need a skillstone, and are simply serialized to a player.
INSTALLATION:

Download the .zip appended to this post. Remove any TMSS 1.0 or 2.x files you may have on your shard, and then unzip the files in the .zip into your "custom" directory. Saves will not carry over from 2.x.

Patching: Overwrite the previous files with the new files. Do not attempt to merge them, unless you have made significant modifications to TMSS 3. Note that modified files are not supported.


SUPPORT INFORMATION:
Do not modify this system. I will not support modified files.
For support with problems, first post here. If I do not respond within 24 hours, email: [email protected]. I will respond to email received for support, provided you did post here first. Support website is here. You must register to post problems.


Contact Info for BUGS:
Three options:
email me at the above address^
or
PM me on RunUO.com/forums
or
visit me at:http://www.csquarenet.net/forum/



Credits (where it is due!):

I would like to thank the following people (by alpha):

For help and support on v3.0!
A_Li_N -- Helping me with my SkillProfiles.
arul -- trying to help me with disappearing items.
Erica -- finding several bugs in my implementations.
orpheus -- suggesting an improvement to the SkillGumps.
Phantom -- bounce-idea-off-er.
Scripture -- finding every bug known to man :p.
TheOutkastDev -- helping me with my compiler get-around.

For help and support on v2.1
FainneRoisin -- lending me her power adapter.
A_Li_N -- helping me unkink my brain on arrays.
Phantom -- allowing me to totally rip the Giga Spawner save file.

For help and support on v2.0
ArteGordon -- technical stuff
daat99 -- input and technical stuff
Khaz -- for input and support
M. King -- input & inspiration for some of the options.
Phantom -- input and helping RunUO forums members since...when.

For help and support on v1.0
jjarmis -- technical stuff
sirenssong -- technical stuff

v's 1, 2, & 3
Kokushibyou -- input, critiquing, mental support


Changelog:

Color codes:
[UR] = Update Required.
[UR] = Update Recommended.

12.12.05: Incorrect settings in distro. Thanks, Erica. (v3.0.0r1)
12.13.05: Skill Gump allowed for more than the maximum number of skills. Thanks, Erica. (v3.0.0r2)
12.18.05: Skill Profiles not loading correctly, due to Custom Skills plugin. (v3.0.0r3)
1.6.06: Skill Gump apply methods revamped & simplified. (v3.0.0r4)
1.13.06: SKILL PROFILES FINISHED! Other minor tweaks. See release post. (v3.0.0r5) [final beta]
1.15.06: Bugfix and cleanup release. Bugs in Profiles and Profile application fixed. (v3.0.1) Thanks, Scripture & orpheus.
1.15.06: Bugfix and cleanup release. Bugs in accessing profile gumps fixed...I hope. (v3.0.1r1) Thanks, slithers.
1.19.06: Major Bugfix release. [UR] (v3.0.2)
1.20.06: Minor Bugfix release. SkillCapTickets work. (v3.0.2r1)
1.23.06: Major Bugfix release. [UR] (v3.0.3)
1.24.06: Minor Bugfix release. (v3.0.3r1)
1.26.06: Minor SkillTicket Hotfix release. [UR] Thanks, devilstail (v3.0.3r1)
1.26.06: Minor release to fix incorrect display in control center. [UR] Thanks, Scripture & DrakeSoulburner. (v3.0.3r2)
2.2.06: Minor release to fix incorrect gump display with stat gumps turned off. [UR] Thanks, Scripture. (v3.0.3r3)
2.5.06: Major release to change some internals. Note that the new Skill Balls plugin will not work without this update. [UR](v3.0.3r4)
4.5.06: 350 downloads of 3.0.3!
4.28.06: Minor release to fix profile gump missing last page of inputs. [UR] Thanks, Padriac. (v3.0.3r5)
5.1.06: 450 downloads of 3.0.3!
5.1.06: Minor release to fix profile selector gump selectively disappearing! [UR] Thanks, Padriac. (v3.0.3r5)
5.1.06: Major Bugfix release. [UR] Thanks, Padriac. (v3.0.3r6)

License: This script is licensed under the GPL.
I *request* that you ask before posting any variants of this script.
WARNING!
WARNING!
WARNING!


There are two versions of TMSS 3. One is for RunUO 1.0.0 (TMSS - 3.0.3 + TMSS - 3.0.3 Patch), and the other is compiled for the RunUO 2.0 Beta (TMSS 3.0.3 [RunUO 2]). Please download the correct one for your version of RunUO. THEY ARE NOT INTERCHANGEABLE!


YOU MUST INSTALL THE FREAKING PATCH! O_O (for RunUO 1.0 only)
 

TMSTKSBK

Lord
How-To and Plugins Release Post

So. I thought about posting the How-To right here. But it's 13 pages long (typed). Sooo...here it is:

System How-To

Profile How-To

WARNING!

Skill Gates and Skill Balls do not work for RunUO 2. Please download those in post #4 for RunUO 2.


Plugins:
Parallel Skills - Separate Thread
Skill Gates - Use a profile to rapidly set skills.
Skill Check Moongate - Make sure a player has a certain level of skill before leaving the start area.
DebugTMSS - A debug file generator.
Skill Balls - Skill Balls for use as a skill stone replacement. Requires TMSS 3.0.3r4+ to run.
 

Attachments

  • SkillGates.zip
    938 bytes · Views: 318
  • SkillCheckMoongate.zip
    1.5 KB · Views: 232
  • DebugTMSS.zip
    1.4 KB · Views: 193
  • SkillBalls.zip
    1 KB · Views: 238

Jarrod

Sorceror
Ill definately be testing it. Ill let you know when I can make it crash ;)

**edit**
Wasnt there some mention of using this to add custom skills to a server?
 

TMSTKSBK

Lord
Here's hoping you can't make it crash :) (Although I have a few times...)

To answer your question, the parallel skills are not *quite* done. I'm working on that.

Additional Plugins for RunUO 2 appended here!
 

Attachments

  • SkillBalls.cs
    2.9 KB · Views: 68
  • SkillGates.cs
    2.6 KB · Views: 83

Jarrod

Sorceror
well so far, no crashes, everything running fine. Ill have to wait for parallels to come around so i can try to e-slam the script and shake any bugs out. :)
 

Erica

Knight
TMSTKSBK said:
Couple of bugfixes out, thanks to my official beta tester, Erica :p
ok got this Error: Scripts\CustomScripts\TMSS3B1-2\SkillGumpEngine.cs: CS0122: (line 1273
, column 46) 'Server.Items.NewbieSkillStone.NumSkills' is inaccessible due to it
s protection level
- Error: Scripts\CustomScripts\TMSS3B1-2\SkillGumpEngine.cs: CS0122: (line 1273
, column 85) 'Server.Items.NewbieSkillStone.NumSkills' is inaccessible due to it
s protection level
 

TMSTKSBK

Lord
Update: Profiles should be out by the end of this weekend. Most of the code is there, I just need to tweak and test some stuff.

After that, I plan to work on re-releasing some of the plugins that were in 2.0. Finally, I'm going to create the Parallel Skill System. I think I have advanced to the point of being able to do that without breaking anything. And when all that is done, I'm off to work on War of the Four Kingdoms (my RTS for UO)
 

TMSTKSBK

Lord
OKAY! I switched it up. Parallel Skills are out! Profiles will be out eventually. I have most of it done. I'm going through and reading all my code again, finding lots of bugs. So go get the Parallel Skills.
 

TMSTKSBK

Lord
Beta Revision 4

Released revision 4 of the beta. This revision addresses some problems with consistency and ease of editing in the SkillGumpEngine file. Upgrade not required, but lays groundwork for r5, which will probably be the last beta release.

WARNING: Saves from 3.0(rX) will not carry over to r4. New variables have been added to the save/load of r4. Skill Profiles from r3- will not carry over, either.
 

Scripture

Wanderer
I really appreciate all the work your putting towards this, but have one concern. I was using a previous version of yours 2[1].2, and removed the customs folder containing your files from that version, then i tried to open the server without either versions installed, and it asked about deleting types for skill tickets and skill stones, i hit yes, then installed your newest version and am now getting the following message

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...done (1740 items, 487 mobiles)
[B]World: Loading... -TMSS|3|- Debug/Error Code: Version is not 3 in save data.[/B]
done (80887 items, 12137 mobiles) (4.1 seconds)
Milt's Auto Tourney System...Initialized.
[B] -TMSS|3|- Debug/Error Code:  Found Directory for skp.
 -TMSS|3|- Debug/Error Code: foreaching[/B]
 -TMSS- Loading Skill Profile: Default Profile.skp
SkillSettings: Loading...done (0.0 seconds)
 -TMSS|3|- Skill Settings loaded successfully.



So my question is, should i be worried about the bolded text, is this something I can fix (since its a little annoying). I'm not too sure if its something that's interfeering with the skill/stat stone itself as I am kinda tired and have not tested how much this is effecting it.


Thanks again for developing this and i'd appreciate any input on it.



EDIT: "The World: Loading... -TMSS|3|- Debug/Error Code: Version is not 3 in save data" went away after i deleted the Skill stone on the shard (sorry, obvious mistake on my part), but the other two lines remain.
 

TMSTKSBK

Lord
This happens when a skillstone was not saved with TMSS 3 variables. It should only happen once. After the next world save, you should be fine.
 

Scripture

Wanderer
I'm sorry for posting again which thank you for answering my previous post, but I tried following the directions of what the skillticket.cs and dropped the following code in charactercreation.cs

Code:
	private static void AddSkillTicket( Mobile m )
	{
		string name = "My Profile";
		if( SkillProfileHelper.ProfileExists(name) )
		{
			SkillProfile prof = SkillProfileHelper.GetProfile( name );
			SkillTicket ticket = new SkillTicket( m, prof );
			ticket.Owner = m;
				
			PackItem( ticket );
		}
	}




But when I do this, I get the following errors:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 36918
Scripts: Compiling C# scripts...failed (3 errors, 1 warnings)
 - Warning: Scripts\Customs\Samurai Empire\Mobiles\SE Monsters\YomotsuElder.cs:
CS0162: (line 15, column 19) Unreachable code detected
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 40, column 7) The typ
e or namespace name 'SkillProfileHelper' could not be found (are you missing a u
sing directive or an assembly reference?)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0246: (line 42, column 4) The typ
e or namespace name 'SkillProfile' could not be found (are you missing a using d
irective or an assembly reference?)
 - Error: Scripts\Misc\CharacterCreation.cs: CS0103: (line 43, column 45) The na
me 'prof' does not exist in the class or namespace 'Server.Misc.CharacterCreatio
n'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.


I've tried moving it to different spots, and also noticed I dont even have a file called skillprofilehelper (which i even tried to rename all of those to just skillprofile and still nothing), I could be saying this as a fact that i'm a noob, or just too tired to notice something obvious and being stupid.
 

TMSTKSBK

Lord
Ah. I see the problem.

At the top of the file, add a "using TMSS;"

Bugs are always welcome. They let me know people are using the system :p.

Thank you for that information. I'll revise the drop-in code.
 
Top