Posts by angriff

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

    ok if I use Notepad++ and set it to YAML it edits it ok. But I have to go back to an uncorrupted file and redo them .. cut and paste seems to work ok .. so not a huge deal.



    The number thing is not an issue. I managed to just test it on my test server and it works.. :whistling:X/


    basically I have several routines around the numbers I did not want to rewrite.. so that is good thing... that is an unseeable syntax error in the permissions files

    Ok two things. Apparently group permissions do not appear to allow numbers in the name.


    The second thing is that if I use Notepad ++ I have to turn on YAML for the language or it corrupts the file somehow and it is not taken. I went back to some older files that did work and editted them now they work correctly. Some syntax error in the file i guess...


    I seem to have to working for one group without a number in the name. name1.permission name2.permissions does not seem to work. If you can confirm this it would end that mystery.


    Thanks for responding . I just got it working and came back to let everyone off the hook ...but you beat me


    I hope this thread helps the next guy .

    Some sort of weird programming thing going on. If I get my old .permission files and put them and then use the following it works


    world:
    deny:
    - destroyterrain:


    but I have to cut and paste the name from the file name into the permissions in the properties files. I guess if you have a typo any sense in these files they don't work and don't tell you why. Not sure if it is the number or whatever it wont take Famer1, 2, 3 etc. for group names.


    This means you have to hand type ever single permissions files for groups .. cut and paste does not work.. Also I used Notepad and saved not save as... Notepad 3++ seems to mess up the files.

    Is this system totally broken? This is really frustrating when a fundamental thing like permissions and groups is so complicated you need to be a programmer to make it work :cursing:

    There seems to be a disconnect between permissions and groups. People are not moving into groups either even though it is set in the properties files and they are showing in the World Database in that group. The only time is worked was when the routine autolevel put theme there but I have stopped using that.


    My permissions are not stopping people from digging in the are in a certain group.



    world:
    destroyterrain: false
    placevegetations: true


    is not working nor is


    world:
    deny:
    - destroyterrain:
    allow:


    - placevegetations:



    Does it have to be typed exactly as it is in the Permissions tab online?

    Hey I used to be able to see people ranks with the TAB button. I went to a player controlled/purchased(in game monetary units) ranking system and permission but I dont see their groups in the Tab .. I see them in the database. Is this a setting in serverproperties or the permissions?

    Well they were added as child... the background added last as I kept trying mask. I even turned the background into an Alpha channel but that did not work either but that was when I was using maks.. I did have some issue with the background.. but finally turning the color white for the image made if visible. Black mixed and I could not see it. I guess I just lucked into it...which is how most of my programming is going.. read a little .try allot. Bought a fast test server setup so I can try it before publishing on the public server.. eventually the public will move to the fast server.

    The screen-wide mask is intended to put a mask texture on the screen which determines which parts of an element are visible. For example, the map uses this feature: the map is just an image, but consists of several map tiles (small separate images). There is a screen-wide mask image which has a similar shape as the map image, and it is applied to the map tiles. As a result, the map tiles don't have sharp borders, instead they're faded when they're close to the map edge.


    Unfortunately this feature isn't fully implemented in the API. The setScreenmask() method only became available by accident, I'm sorry for the confusion :(


    However, what did you try to achieve exactly? If you just want a certain element to be invisible, using the setVisible() method is indeed the way to go.

    I put a background picture on a GUI. It works .. I was worried that the labels would not show through so I thought the mask would work like a mask in Paintshop Pro. It is fine what I have done. Thanks for the reponse


    I love that I am talking to myself here. It is what I do in real anyway.


    Well could not figure out mask.. but what I wanted was a background anyway and that is done with an image .. labels will show up on top. The size is clipped a little from the 400 by 400 panel and centered like the panel so that the border shows. Labels show up top layer. Not sure if there is a layering technique other than visibility.


    GuiImage goldback = new GuiImage(0.5f,0.5f,true,396,396,false);
    goldback.setImage(new ImageInformation(plugin, "/assets/gold.jpg"));
    goldback.setClickable(false);
    goldback.setPivot(PivotPosition.Center);
    goldback.setVisible(false);
    goldback.setColor(1f,1f,1f,0.5f);


    GuiLabel logo = new GuiLabel(0.26f,0.8f,true);
    logo.setText(" Angriff's Lair ");
    logo.setClickable(false);
    logo.setFontSize(36);
    logo.setFont(Font.Handdrawn);
    logo.setFontColor(1f,1f,0f,1f);
    logo.setColor(1f,1f,1f,0.1f);
    logo.setVisible(false);



    FYI - Toggle boolean visible for showing.



    I am sure there is a better way but this works and I wanted to share it with those beginners like me. :| If you need a look it is up on my server.

    Ok needs some guidance on Declaring a Screenmask and how you turn it on? It should be part of the panel so it moves into the background?


    panel.setScreenmask(new ImageInformation(plugin, "/assets/goldmask.png"));

    It needs to be updated for UID reference not name reference for the general reasons for this. The autologon account setup was not functioning in my server so you have to sell something for the account to show up. I have done a minor patch that allowed that as well as transfer between people if you need it contact me. It is functional, if rather crude, as I am not an expert Javasmith by any stretch of the words.


    There is a command for exporting and importing a .csv file that you can edit the prices. It is an admin command. /economy export and /economy import. The file has to be .csv but you can edit it in Excel or a good text editor. The price item list is woefully out of date. You will have to update this with new items such as saddles or saddlebags.

    Well if you are going to allow that how about Fracturing Fluids and Mud pits that overflow? We can have the oil kill the vegetation and mutate the animals into zombies. <X

    Im not entirely sure but I don't want to wait several hours for trees to grow before I can chop them down again. Now thinking about it more, the veggie growth is spot on how ever its the trees that are my main concern perhaps maybe 4-5 game days for them to grow? Think this requires more input.

    Sort of bending the reality here. why not just go into creative mode if they are that important.. part of the survival part is being conservative in areas of fewer trees or culture them in a farm.