• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. A

    TFS 1.X+ Questions about RSA KEY

    I can explain how to use crypto to do it, but I can't help with the coding. I work with software that has this capability built into it - i.e. it can make a TLS connection with other copies of itself out in the network. You don't need TLS to use asymmetric crypto, but it's probably the easiest...
  2. A

    Lua Is it possible to interact with the map and/or cpp pathing logic in Lua?

    I'm (very) slowly starting up an AI project that will require controlling the movement of multiple monsters. I'll need two things: My logic will need some understanding of a section of the map - possibly a large section. Certainly hundreds of tiles, perhaps a few thousand I'll be updating my...
  3. A

    Lua Wood cutter lua

    Here's a Java version. Seems to work ok, but I didn't test much. It's not fully cleaned up either, but I can't spend more time on it now. FWIW I got the size down more than I'd expected. It was coded and tested in Eclipse (IDE). I can't help much (if at all) with compiling or running it...
  4. A

    TFS 1.X+ Lua remove item charges

    I wish I could test this, but I don't have OT installed so it's impossible. Would you like to run some tests as a joint effort? I can suggest some things to do, but you'd have to run them. I think the only pre-reqs would be: Have a container (e.g. a backpack) Be able to add/remove some...
  5. A

    TFS 1.X+ Lua remove item charges

    Xikini I haven't looked at the whole thread (I'm just looking for useful examples of OT Lua for a different project), but your description here caught my eye ... Could the game be creating an instance of a "static" object when it's placed in a backpack, put on a tile, or something similar...
  6. A

    Lua position changed, why?

    roriscrave FYI, the code you showed at the start of the thread is actually the classic example for explaining references. Unfortunately most discussions on the web about this are full of complete rubbish, so it's quite hard to get good information quickly. In particular, never pay attention...
  7. A

    TFS 0.X talkaction to show the date you can do the quest again

    Off topic: is there away for me to delete a post? I wanted to remove my reply but can only figure out how to change it via Edit.
  8. A

    Lua Wood cutter lua

    Sure - you can have a copy. I'll probably zip it and attach it here if that's ok for you? Though that means everyone gets to see I'm a terrible Java coder /lol. I'll need to clean the code up (the structure isn't right, and it's full of comments reminding me how to use newer Java features)...
  9. A

    Can I run an AI script continually (once per "game tick") in the background?

    Okke and Ascuas Funkelein - thanks for your responses, and sorry for the delay in reacting. Okke I'm a Java coder, and I have work reasons to learn C#, so if I pick up another "general purpose" language C# will be first. I can read C++ code up to a point, but I'm well below the minimum...
  10. A

    Lua Wood cutter lua

    roriscrave I did this in Java as an exercise (needed a warm-up because I haven't done any coding in a while). It implements the "Greedy Algorithm", and given your example parameters, it produces my original solution (with 22 meters of waste). It's about 400 lines of active code (800 with...
  11. A

    TFS 1.2 Globalevent (spawn item) doesnt work

    I think some of the LUA questions in OTLand support could be handled by sharing some basic coding techniques For example this kind of thing could be easily picked up by inserting temporary "write to stdout" instructions (I assume LUA can do this?). Or maybe, since it's being tested in OT...
  12. A

    TFS 1.2 How can i edit this code so it would spawn only one Boss

    Henkas - a suggestion: write down exactly what you want to do. And if you can, make the title match your main objective. A. You seem to have a working system to: Once an hour, you may spawn a boss with a 10% chance Remove that boss after one hour if it hasn't been killed B. You have a set...
  13. A

    Lua Wood cutter lua

    This is easy to specifiy, but not as easy to implement. It's also a different kind of logic than I've seen so far on OTLand, so there may not be many (or any) reusable fragments available. If you can find someone who wants to do it I'll help them, but you shouldn't expect it to "code itself"...
  14. A

    TFS 1.X+ Questions about RSA KEY

    Do you want to ensure that only your client is connected to your OT Server using encryption (e.g. authentication with X.509 certificates)?
  15. A

    Linux activated firewall, blocked my ssh access

    Did you try listing the firewall rules, and if necessary setting rules to allow access to the SSH port?
  16. A

    Lua Wood cutter lua

    I'm not set up to write LUA code at the moment (haven't done it in more than 5 years), but I'm going to install LUA and find a development environment (hopefully there's Eclipse support). But this means I can't write any code at the moment. If someone else wants to implement it I can explain...
  17. A

    Lua Wood cutter lua

    Sarah I think he has a supply of large pieces that are 12 meters long, and a set of shorter lengths that have to be cut from 12-meter pieces. He wants to minimize waste for the 12-meter pieces that are used. Treating the 12-meter pieces as one large piece is a different problem. My approach...
  18. A

    Lua Wood cutter lua

    My quick heuristic solution was: 5 x ( (2 x 3.5) + (1 x 5) ) => zero waste 5 x (2 x 5) => 5 x 2 waste = 10 waste 4 x (2 x 4.5) => 4 x 3 = 12 waste total 22 waste There are two others I'd test next that might be better, but that's not really the point. It's easy to make the example more...
  19. A

    Lua Wood cutter lua

    80% might be achievable if you keep the amount of variation down, but the complexity will grow very fast with additioinal sizes of the logs and sawn timber. Finding an ok solution won't be hard - knowing it's the best showing it's the best will be difficult. And if you don't kniow what the...
  20. A

    Lua Wood cutter lua

    I think it will be quite difficult to find a generally optimal solution. Do you need it to be perfect, or want it to be perfect?
Back
Top