|
||
|
|
#76 (permalink) |
|
Okay, I found out what my issues are with XMLSpawner and added extended commands.
The extended text entry gump operates oddly on my machine. In the example of the metalchest that you have provided I would enter in metalchest/locked/true/locklevel/.. then after that the text is still available but you cannot see what yoru typing anymore cuz you have typed 'off' the gump. If I try to add a new line or if I enter in too much text a carrage return occurs and then I get 2 spawn entries that are blank instead of being 'metalchest' yet one still spawns the chest and has the command line text in it! So basically the extended entry gump dosnt have enough room to enter in extended commands and/or dosnt handle carrage returns well and/or Im doing something wrong again... hehe |
|
|
|
|
|
|
#77 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
are you sure you are not typing into the basic text entry area in the main gump. The extended text entry gump is what comes up when you click on the scroll button to the right of each text entry line in the main gump.
If you try to type long lines in the basic text entry area it will let you type, but you wont see text beyond the end of the single line text entry area. If you are typing into the extended gump (has ok, apply, and X, buttons at the bottom of it) and it is not displaying text as you enter it beyond about a single lines worth, then there is something going on. It should automatically wrap around as you type, displaying the text as you type up to about 8 lines (its a client-side text entry limit which is on the order of 200 chars). How are you entering a carriage-return? gump text entry is a client-side thing so you might want to check to make sure you are patched up to date.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#78 (permalink) |
|
I am entering into the extended gump,I get as far as:
metalbox/locked/true/locklevel/30 then beyond that I can continue adding text but i am unable to see it. Also, when I get to the '30' upon entering in the extended commands the entry gets forced down a line, leaving a blank line above it. |
|
|
|
|
|
|
#79 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
sounds like a client-side issue. Are you using the 2d or 3d client?
When I enter the line it also gets to end of the first line where I am about to type the 30. When I type the / just prior to typing 30, the cursor (the underscore) wraps to the second line and when I type 30 it appears as the first chars on the second line with the previous text still visible on the line above it. Can you see the underscore cursor that leads your typing?
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#80 (permalink) |
|
I think we are on to something..I am using the 3D client ver 4.0.1b
The text does not respond on my client as you indicated above, your response would seem more logical than the odd behavior I'm experiencing. I see a underscore cursor I can get to: metalbox/locked/true/locklevel/3 beyond that point my cursor goes away I can still enter 0 so the visible text entry would be: metalbox/locked/true/locklevel/30 beyond that text entry is still possible but its not visible. No carrage return is performed. The Metalbox entry when exceeding the visible range then gets forced down a line entirely, leaving a blank entry above it. |
|
|
|
|
|
|
#81 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
odd indeed. I havent tested it with the 3d client so it is quite possible there is some issue with text entry.
Unfortunately, there arent many options for text entry in gumps. One thing to try is perhaps changing the text hue. you can try changing it by going into xmlspawner2.cs around line 7890 and changing AddTextEntry( 35, 30, 200, 251, 0, 0, str ); to something like AddTextEntry( 35, 30, 200, 251, 0x384, 0, str ); and see if it changes the behavior. While it is a minor hassle, one way to edit long text strings in the spawner is to name the spawner, do an [xmlsave tmpxml spawnername, and then open up the tmpxml file, edit the text there, and then load it back with [xmlload tmpxml.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#82 (permalink) |
|
Ok tried changing the color, dosnt help as once the text hits the end of the extended gump it isnt visible via the client, so making it white dosnt make it visible.
wonder if I can find an example of this that works and try to find the function and post it here...I'll give that a shot. Not sure if it matters but Basebook.cs works fine in my client perhaps that contains a function that might prove useful. |
|
|
|
|
|
|
#83 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
good idea. I will check that out.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#84 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
updated to version 2.26
from the changelog New to v2.26 - Added the "[xmlimportmap filename" command that allows .map files to be loaded. - Added the TriggerAccessLevel property that lets you set the access level required to proximity trigger the spawner. - Added the commands [xmlnewload and [xmlnewloadhere. - modified the [xmlload and [xmlunload commands to also support recursive subdirectory loading/unloading of .xml files. DESCRIPTION: - added the TriggerAccessLevel property that lets you set the access level required to proximity trigger the spawner (the level is Player by default). Any player at the specified access level or below will be able to trigger the spawner. This can be used for testing spawner triggering while remaining at admin access levels. - added the "[xmlimportmap filename" command that allows .map files to be loaded. Note, this will only add, not replace spawners, so calling this more than once with the same .map file will result in duplication. If you wish to be able to [xmlunload spawns defined in .map files, you should import them and then [xmlsave them into an xml file. You can then unload and load them as you could any xml spawn file. If a directory name is specified as the filename argument, then the directory will be recursively searched for all .map files beneath it. - modified the [xmlload and [xmlunload commands to also support recursive subdirectory loading/unloading of .xml files. when a directory name is given instead of a filename. - modified MinDelay and MaxDelay properties to readjust the spawn timer immediately when they are set. Previously the timer would retain the previous countdown until the next OnTick so that when min/maxdelay values were modified they would not take effect immediately. - added the commands "[xmlnewload filename [spawner prefix]" and "[xmlnewloadhere filename [spawner prefix][-maxrange range]" which are the same as the [xmlload and [xmlloadhere commands except that they do not attempt to replace existing spawners by checking for matching GUIDs (the unique id that every xmlspawner gets), but rather automatically add new spawners and assign them new GUIDs on loading. They also override any specified Map settings in the file and use the players current map instead. This allows you to make a .xml file and use it as a template for creating spawners that can be placed repeatedly. Note, that you will not be able to [xmlunload spawners that are loaded in this way since there would not be a file containing the new GUIDs. If you wish to be able to unload them, then after loading spawners in this way, I would recommend doing an "[xmlsave filename [spawner prefix]" of them so that they are now uniquely defined in their own "[xmlunload"-able file. The [xmlnewload" command can also be used to copy spawns between felucca and trammel. For example, to duplicate felucca in trammel, go to felucca and do an [xmlsave, then go to trammel and do an [xmlnewload (thanks to Quantos for the suggestion). - added the -maxrange option to the [xmloadhere and [xmlnewloadhere commands that allows the user to determine the range beyond which spawners will not be loaded with a relative location (i.e. if they are farther than maxrange from the first spawner in the file, which determines the origin for loadhere, then they are loaded with their absolute coordinates as defined in the file. default is 48 tiles). The syntax is "[xmlloadhere filename [spawner prefix][-maxrange range]" or "[xmlnewloadhere filename [spawner prefix][-maxrange range]"
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#85 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#86 (permalink) |
|
bow before me.. or perish
|
It might be useful (would for us, at least, if no one else finds it useful, I can do it) if you added an option to find a file.
[xmlload myspawn would search a root path defined in the script for any file matching myspawn.xml. If multiple files are found, it either fails or dumps text to the user telling them the exact paths to use. Also, a function to throw a gump to a user showing them all possible XML files with buttons to load/unload them ![]() Maybe a bit over the top / or unneeded. We already have ~100 XML files and its getting tough to manage them easily.
__________________
http://www.dominusexuro.com/ |
|
|
|
|
|
#87 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
I'm working on some gump interfaces for finding items/mobs/spawners and adding .xml files is a good idea. I'll look into it. Thanks for the suggestion!
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#88 (permalink) |
|
Okay, so I almost have trammel fully spawned using XMLSpawner and my server.exe for runuo is using up 30 CPU and 172,828 K memory in task manager and thats not good.
So, When using XMLSpawner to spawn mobs there is a setting to not spawn anything till players come within range. Thus reducing overhead of the server.exe What prop is that? I have looked and there is nothing that seems obvious to me. Thanks
__________________
The Black Pearl Shard ================ UO Gateway Public Shard http://www.whitewarehouse.com/blackpearl/ admin: nix4@Hotmail.com |
|
|
|
|
|
|
#89 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
sounds like you have PlayerRangeSensitive set to false. This allows mob AI to run all of the time, regardless of whether players are around. Check in basecreature.cs. It is around line 3760 in a clean distro version.
What I would recommend to reduce cpu load in that case instead of having the spawner do player-sensitive spawning, is to get the PlayerRangeSensitiveMod in submissions. This will allow you to run with PlayerRangeSensitive set to true, which will inactivate the mob AI when players are not around and is a lot less cpu intensive, but still allows them to continue to run their AI for a time after encountering players, so it largely behaves like having PlayerRangeSensitive set to false. If you still want to do player-triggered spawning, then you just have to set the ProximityRange property to something zero or greater. The spawner will then wait until a player comes within the tile range specified in the property before triggering a spawn. Note, that once triggered, the spawn will occur after the min/maxdelay period specified for the spawner has expired.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#90 (permalink) |
|
hrmm..well I went ahead and downloaded it and placed the 2 scripts over the old ones as instructed and rebooted and let the server run for 5 - 10 min and I don't see any difference what so ever...perhaps I need to edit the spawns that are already in game?
__________________
The Black Pearl Shard ================ UO Gateway Public Shard http://www.whitewarehouse.com/blackpearl/ admin: nix4@Hotmail.com |
|
|
|
|
|
|
#91 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
With the PlayerRangeSensitiveMod, new spawns will run their AI for the default 2 mins, or whatever you set as the DeactivationDelay in BaseAI.cs
If there is still respawning going on, then let it run until things settle down to see the effect. If you just added a lot of fresh spawns then there may still be a lot of spawning going on as mobs are gradually added until they they fill up their spawner. You dont need to modify mobs for it to work.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#93 (permalink) |
|
Question: Whats the best method for setting up a xmlspawner for something like reagents? I have a spawner with a spawnrange of 200 or 500 and about 1900 spawns for various reagents. I check the spawner later on and notice there are only 128 out of 1900 spawns still active..how can I set this so it keeps it at 1900 as much as possible?
Thanks.
__________________
The Black Pearl Shard ================ UO Gateway Public Shard http://www.whitewarehouse.com/blackpearl/ admin: nix4@Hotmail.com |
|
|
|
|
|
|
#94 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#95 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
The fraction of spawns that will be active at any time will depend on the rate of spawning (min/maxdelay) and the rate of item decay. So, to keep the spawns as close to max as possible most of the time, reduce the min/maxdelay. Now, normally the item decay rate would be much longer than the spawn rate so you would be near max most of the time. Unless you have a really short item decay rate, or a really long min/maxdelay setting, it is probably something else. The maximum number of spawns that will be available at any time will be determined by the maxvalue of the spawners.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#96 (permalink) | |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
Quote:
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
|
#97 (permalink) | |
|
Forum Novice
Join Date: Jul 2003
Posts: 122
|
Quote:
|
|
|
|
|
|
|
#98 (permalink) |
|
Master of the Internet
Join Date: Aug 2003
Posts: 5,688
|
when you use duration, at what point do you get a crash? When it spawns, or when the spawn is deleted.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. " For questions, information, and support for XmlSpawner and its addons, visit the XmlSpawner Support Forum |
|
|
|
|
|
#99 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Posts: 122
|
MX=5, max spawns I take it,
SB?? RT= reset timer I take it, what does this do T0=?? KL=1 take it kills = 1 then I would like to spawn 5 orcs, when players have killed 5 I would like to spawn 5 ratman, when that is done I would like the spawn to spawn a level1 treasure chest. I am unsure how to sequence these things. I just clipped and pasted the piece from the xml spawner. Colors on the spawner, Looking at your meph champ xml script I noticed that meph is yellow, then 2 dark blues, a couple of purples, then at bottom note is green. I realize that the groupings are things that spawn together till kill count is reached, but do not understand how to go from grouping to grouping, Any help would be great, this spawner is awesome, just having a bit of trouble figuring out some of the syntax. Thanks for posting this. |
|
|
|
|
|
#100 (permalink) | |
|
Forum Novice
Join Date: Jul 2003
Posts: 122
|
Quote:
|
|
|
|
|