If we could have a hard point to attack a block to a motorized rib we could build design bigger ship and move it with that. It could be really cool. Might take a remote or UI steering position routine.
Imagine all the houseboats we could build.
If we could have a hard point to attack a block to a motorized rib we could build design bigger ship and move it with that. It could be really cool. Might take a remote or UI steering position routine.
Imagine all the houseboats we could build.
I no longer need an answer for this as I found a method that works without calling the object directly. However I would like a discussion on capturing objects and npcs if you have a direct answer or better idea.
What would be the best way to capture the object and move it without doing a raycast?
dang I sorry.. I did not import import net.risingworld.api.World; And it was third on the list from NetBeans.
Thanks
Well I get this error .
Npc[] npcs = World.getAllNpcs();
symbol: method getAllNpcs()
location: variable World of type Target
1 error
error: cannot find symbol
I seem to keep finding errors in getAllNpcs and cannot seem to find a method around it. In fact I cannot get NetBeans to even select it if I type World.
Well it worked with the semicolon perfectly. Thanks so much Red and Yahgigle for your help. It was the thought that needed the apostrophe in front of the name to mimic that DbBrowser method.
is that semicolon behind the quotes needed?
In the npcs table under names the default is null so doing a count of that if no names are added, will result in a null
Read above made a edit and added more info, sorry i did not see your reply till after i refreshing the forum for some reason oO
yes, I was looking for nulls and that return a 0 count which is valid in my search. Maybe I need to strip the special characters out ('s) and then submit it with wildcards.
So notice how the DbBrowser execution requires LIKE 'angriff__' to work. This indicates to me that to make it work i would have to use apostrophes on each side of the literal ' '"+playernm+"' '" but this does not work.
Thanks to the both of you. But, can I use the SQLite handle with an apostrophe or wild cards in the count? That is part of the issue here I am searching for variations that might contain special characters and almost always has an apostrophe. The apostrophe unfortunately is used to denote literals in the command string and it keeps getting errors flags in Netbeans for that. Also the underscore wild card, I think will work fine but wanted to clarify. This is looking to count the string using LIKE that has apostrophes and even that throws the DBBrowser tab search flags
Bear in mind guys syntax is my dearest friend and strongest fiend at the same time.
I tried something similar to that but similar no results. The issue is the database name has an apostrophe character in it and you have to use wild cards to get it to work in the SQL tab in the Database browser execution tab so I thought when you used like you needed the apostrophers. on both side.
I will fool with it along your lines in the morning.
I have a different way to do what I want but I wanted to use the World Database for the tracking and not another database or player attribute.
I can run this query on the database in the executeSQL tab and it runs like a charm. But trying to put this in a string I keep getting literal errors and exceptions when it runs. I cannot get the single apostrophes into the string without it thinking they are literals. Is there a better way to get a count of the specific items in a column?
database.executeQuery("SELECT COUNT(*) AS TOTAL FROM 'npcs' WHERE 'name' LIKE '"+playernm+"'__")){ This line is without trying to get the literal apostrophes but adding wild cards at the end.
Is there is better way to get a count of the names in the WorldDatabase.Target.Npcs ? The Total part was an attempt to extract the Total without the Resultsset. I get nothing but exceptions so I am sure it is likely syntax in the command string.
the selection box is tied to the same directions / angle as the grid
and I guess you cannot turn that part off? Problem is that things you want to delete are not built or placed in the matter of blueprints in the direction aligned with the grid. So if you have a building that has inbuilt items you want to delete then you have to do it piecemeal. This is true long after you lose the ability to undo a blueprint.
pressing backspace resets the selection box, you can use the arrow keys and page up / page down to change the size, height, etc. of the selection box.
Ok the reset is helpful. However, it is the angle the box draws at that I need to set. It is always an an angle to how I ma looking
Seems this routine always starts that last place I used it and I get a huge box if I move. Also it always starts and an oblique angle and I cant seem to make it rotate to cover what I want to delete. Is there any way to do this?
Just tried to capture who is putting on a saddle to authorize other events in a plugin and it seems to interfere with interfere with the visuals of the mount having a saddle on it. I get the related players name and name the horse that players name. If it place the saddle and name it externally to this event method both the name and the visual of the saddle work correctly. Combining the naming with detecting the naming makes it so the saddle does not show up on the horse. However, the name is placed in the database and shows up properly,
This is inside a plugin that has this event method inside an @Override. Maybe this is the reason. If so, is there a way to prevent this and still capture the data and perform other actions?
In review - I also cancelled the event on exit. Maybe I should not do that. I will test.
Wow we are not worthy of your greatness.
On the squinting .. i know, I know and I have a big screen but it does not help. The dam thing is 2d.
Lol you can make its root games Oware and Mancala, Once you get it.
Alright I am going to have to think of new games for you to do so you don't get bored. What about Oh Wah Ree. Everyone does Cribbage.