Posts by angriff

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.1 (2024-12-20)

    Welllllll, yes and no.... :wacko:


    Anyways glad you have it sorted.

    So you think 0.2 is NOT both an double and float possible number? but as far as sorted, yes I am too as it was annoying and significant progress has been made on my GUI.


    So here is another similar issue.



    exitbutton.setFontColor(50,999,999,50);

    vs

    titlepanel.setFontColor(0.125f,0.61f,0.11f,1.0f);



    Neither gives an error in Netbeans.


    The latter produces a greenish font the former a red one.


    I know Red is working on making blocks stop water from seeping through. This is an important step in making water move in aqueducts and such but also offers an interesting physics. If blocks will hold water they can also hold out water creating a displacement. As any seafarer knows displacement can lead to enough buoyancy to produce flotation. Hopefully the physics of a center of gravity and center of buoyancy is in the capabilities of Unity. :D

    Thanks guys not knowing that there is a difference in the number ranges between the types was not the issue but rather, the notation to declare them with in statement notation ( ie. the f and d ), The API clearly says that the parameter argument s in public void setBackgroundColor(float r, float g, float b, float a) are floats. The problem was not even the calculation of the 0 to 1 requirement which is the desired RGB number (0 to 255) divided by 255.


    The fact that any number between 0 and 1 was giving the same pink background results led to a further confusion. It was my error making the assumption that the Constructor would recognize the decimal form 0.62 (160/255) as in of itself a legitimate float. It requires the input to declare the decimal form number as f (Float), Further NETBEANS does not have the information to know the parameter argument can only be a valid float and determines that the decimal number can be either a float or double and assumes a double then flags a lossy conversion error and will not compile.


    panel.setBackgroundColor(0.2f,1f,0.62f,0.8f); has no ERROR Flag


    panel.setBackgroundColor(0.2,1,0.62,0.8); has an incompatible types: possible lossy conversion error from double to float. ERROR Flag


    So NetBeans took the decimal numbers to be ,as default, doubles and would try to convert them to float during compile. I can only imagine at this point had NetBeans not assumed the decimals numbers are Double as default that this valuable reinforcement would not have been available on using notation and its requirement importance.


    <posted this as clarification of the next person searching the forums for help on a UI panel background.>

    Thanks .. I just confirmed it every time I used the floats without the f it kept giving me a lossy error. If I put the the hard integers like 255 or 160, Netbeans accept it but made it pink for some reason so it confused me to what was going on. I just came back here to let you know it confirmed to work. Now If I could just turn the dang thing off.

    Did you know you can use Static Water to build up a waterway that the boats can traverse? I just did an experiment on my server and made a canal that went up hill and traveled across land. It has to be two blocks deep and wide enough to turn around but it is cool, actually.



    Unfortunately gravity on your boat does not create a current

    Thank you! I don't have the server file in my folder, though it is a dedicated server. Also...where can I find my UID?

    it is a server.properties file found in your Steam folder. On my computer it is C:\Program Files (x86)\Steam\steamapps\common\RisingWorldDedicatedServer\server.properties Maybe you could do a file search on that.



    Did you try the command line in game command makeadmin?


    I am assuming you are a Steam user. If you are then your UID is the same as your SteamID. You can find this in your account details. Use pulldown top right under your name for Account Details in Steam. It will be the long digit number under you named marked SteamID.


    You likely can read your own by going on the server open the command line with the tilde then type logs. This will open a file called player log file. about a page and a half a page down you should see your name and your UID just above it.


    In a blind leading the blind pinch; you could come on my Server Angriff's Lair then I could read it from the database.

    I actually have that westernized style Japanese bed in my Japanese decor guest bedroom in real. Well it is a queen bed with two tatamis. ;)


    I agree bedding looks a little clunky in the game. Not sure what texture is best.


    Unfortunately there is so "Split Amount" option so we can manually input how many we want split off.

    Personally I think that would be one of the biggest QOL changes that could be done to the inventory system.

    Yes to have someone put in 5 out of 11 of something into a chest is hard. As yahgiggle suggests, one could have the plugin do this effort. I will say that in most other games I have played the use of a shift key during mouse dragging usually provides for a number to transfer input window. That would be an wonderful addition on the game playing side for players.

    you could count it and then remove what ever and get what is left so say the stake size is 10 then you do 10 - 2 = 8 2 goes somewhere and 8 stays in the slot

    Thanks should have clarified this was a game playing not really a game plugin coding question. I was imagining how someone could do something I wanted them to do and discovered there was no easy way for the player to do it. I already do something similar to what you suggest in a sell saddling plugin for leather . If you have too much it takes what it needs and leaves you will the remainder. In the case of what I am doing now I was going to make the player provide exact currency for the exchange which is hard for them to do. Rising World has holes or discontinuities on the actual individual game player side and is more of a plugin programmer's sandbox.

    If it is a dedicated server it is found in the server directory as server properties file. Edit the Admins with your UID from Steam or the one you bought with the Game. This will set you to ADMIN. I use Notepad to read and edit and just save. Do not save as or use a rich text word file editor like MS Word. If it is on some other commercial server that is about the same but you have to FTP to access the file.


    You can also hit tilde (key to left of 1 on querty keyboard) then type makeadmin

    Yep just checking for correct items being placed in and counting the stacks. So I punted and said I would just count them once they were in the chest and that is where I changed to wanting to get the inventory and count it.


    PS edit. If you have/ask the player to move multiple stacks you get a new event each time and have to temporarily store the moved stacks and total. It was this lost/multiple of instance that was causing most of my anguish in how I reported it back to the player and my plugin. But it is working fine with your lead. Thanks

    Using a PlayerInventoryToStorageEvent event

    I can get the chest ID which is the same as in the Database

    event.getStorageID()


    However, this is where I am stuck on how to get the storage object with the inventory since this event Class does not appear to me to have method.

    I assume you are saying I get the chest using getStorage() then using Item[] getItems()? Because for me, the ToStorageEvent wont bring up .getstorage() as a method of the class.


    So what you are suggesting I have to listen to

    PlayerStorageAccessEvent

    to get that. [which does work thanks]


    I was trying to watch what was being moved. If I read this correct I will have to open and close the chest to trigger the second event, true? Maybe I can catch them both at the same time for what I need to do.