Right now I have way too many NPCs on my server. They are spawning and ending up group up against mountains and water in huge herds. Is there a way to limit them short of deleting them all at once or one by one ?
Posts by angriff
A big new update is now available, introducing biomes, caves and much more!
Latest hotfix: 0.7.0.3 (2024-02-21)
Latest hotfix: 0.7.0.3 (2024-02-21)
-
-
Does it flow through pipes?
-
Also Water Lilys should move with the water in a pond. They look nice but a great look would be for them to sway with the water. You will make Monet happy too.
-
The Trees and grass sway in the wind but the water just stays there. I know it ripples but it would be nice if we could get some weather in the oceans too.
-
there is a reloadpermissions command just for this
Yes and No on that. I restarted my server which should have reloaded the permissions (I would think) but it did nothing. The files are corrupted and are not seen by the server. I have a different post about this problem. All the files were in the directory but the game only saw that ones that were not adjusted. If they are corrupted by an online save or some fancy text / font crap they are not seen. I had this same experience in the JAVA version servers I ran. The listing of all the files in the directory and the listing in game for an area
-
Solved this was a corrupted permissions file that was edited online and not moved to a separate computer and edited with generic editor.
-
Hello everyone
to add permission areas protection players
I looked at the example but I still only have the 3 displayed on the server even if I add other permissions
default permission
},
"area": {
"addplayer": false,
"removeplayer": false,
"setname": false
},
permission Areas
{
"area": {
"addplayer": false,
"canenter": true,
"canleave": true,
"removeplayer": false,
"setname": false
},
Hello everyone
to add permission areas
I looked at the example but I still only have the 3 displayed on the server even if I add other permissions
I tried several attempts but always the 3 by default are displayed
I may have an error name files or not in the correct file location
thanks all
You have to be careful editting these .json files as if they are changed while the server is running the server will not pick them up. It is best to use a generic editor or notepad and just save it over the file to avoid adding extra textural information being added to the file and the server will ignore it. Best is to make a copy and name the old one backup.json or something. They do need to be in the Areas directory for the server routine to see them. I just had this problem on my server and had to remove the corrupted files, re-edit a back up file and move it to the server Area directory.
-
-
Will cats and dogs be added to the animals?There are foxes or wolves in the North. But what I want to know if there will be Parachuting Dogs.
-
Ok seems to work might have toggled gm 1. I do it a lot.
-
Bettermethod for me seems to be
Long UID = Long.valueOf(event.getPlayer().getUID());
-
You should use;
The UID is a String there is no reason to convert it to a long, unless you are planning on doing mathematical functions on it?
Longs aren't needed, the UID, albeit looking like a number, is an ID an not a number.
If you really wanted to use longs though you can cast a String to a long.
However, I do not recommend casting the UID.
Well the old code pulls the long from a database file and passes them to subroutine so it is used similar to mathematics in how it is used to identify and pass numbers identifying lines in a database file. So it just becomes a bunch of lines that need to be adjusted. Switch the lookup to String now makes these pulls and subroutine passes incompatible long /string lines.
It can be converted, I get it. It seems like the easiest method. The String just creates an incompatibility with old game java subroutine passes and reads that seemed unnecessary (albeit Red51 gave his acceptable reasons). The example is wrong in JAVADOC and should be adjusted.
A passing line example;
Long UID = event.getPlayer().getUID();
(result.getLong("UID")
long amount = value.Costing(UID); //this line will flag a Long/String error if UID is changed to String. Long amount is used in math routines.
-
No biggie. I can convert it in the old code or use it as is. I just wanted to bring attention to the wrong example being wrong.
-
if your admin they will run away, if your using the api to place them you can make them alerted and stay that way.
Well I am always an Admin but they do attack me when I first log on. I am using the in game command line ` placenpc lion2 or lion <blank>
This is on a multiplayer server. It is possible that was in creative mode as very often I am in GM1. I will retest.
-
i believe it has something to do with non steam versions of the game. not sure the data type the standalone version uses. if the game was to sell on another site their id system may be different. storing the value as a string would be more usable.
You can get a non Steam key to run the game. I have players on my server that only have about 7 digits in their UID recorded in the Database. But that has nothing to do with the issue.
In the JAVA version the player.getUID() pulled the Steam ID and it was a (long) return. Now it is a (String) return The example javadoc points to String in the declaration then uses it as a (long) return. But when I use the term (or exact routine in the javadoc example) I get an error flag that the string cannot be converted to a long. That means I have to read it as a string and convert it to use it as a long for my old routines and database writes or convert all the lines to look for and write a string.
I mean maybe I am reading too much into it but seems it changed from the JAVA days from a Long to a String in the Unity API.
-
getUID
public String getUID()
Gets the globally unique ID of the player. This ID will never change, even if the player joins another server. For Steam users, this method returns the SteamID64.
Returns:
the globally unique player ID as a string.Example: Display the UID of the player1
//The UID is a 64 bit number, so we have to use a long
2
long playerUID = player.getUID();When I try to use this example I get an error flag that A string cannot be converted to a Long? The JAVADOC uses public String when discussing it then the example shows long. I guess I can convert it but wanted to get clarification.
-
did you make sure the that the API jar is still in the sdk folder?
yes.. and I verified the files with Steam which would have corrected a corrupted file. All is well thanks for the reply.
-
Was going through some old JAVA projects to update them and came across this issue. The Player UID which used to be the Steam ID (and still is) is no longer a long but a string. Why is this?
-
Nevermind I had to delete link and re-link the jar file for the library (Using Netbeans resolve problem) in my game directory after verifying files with steam. Not sure what changed but seems to be ok now. Just posted this incase somebody does a search for this issue.
It could have been an older JAVA game project had a bad link.
-
Suddenly NetBeans has totally lost all links to the API. I cannot add the RisingWorld and I cannot delete it. Every project now shows it cannot find the Rising World API. Any ideas?