Coder Social home page Coder Social logo

javidpack / herosmod Goto Github PK

View Code? Open in Web Editor NEW
85.0 7.0 42.0 1022 KB

HERO's Mod for tModLoader

Home Page: https://forums.terraria.org/index.php?threads/heros-mod-creative-mode-server-management-and-over-25-tools-1-3-4-4-compatible.44650/

License: GNU General Public License v3.0

C# 99.54% Python 0.46%
terraria mod tmodloader

herosmod's Introduction

HEROsMod

HERO's Mod is the latest iteration of the Gameiki mod for tModLoader.

This mod was originally developed by chatrat12.

Feel free to suggest new features and submit pull requests.

herosmod's People

Contributors

alinahvoshch avatar bilimoing avatar caicyo avatar chik3r avatar deltarune avatar javidpack avatar linnnnnna avatar remforever0 avatar slash-estio avatar spencerdawg avatar steviegt6 avatar sweellong avatar thebambino avatar wolf-igmc4 avatar xnarnia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

herosmod's Issues

Favorite Buff feature, with hotkey.

A way to specify a loadout of buffs to cheat-apply would be neat. Maybe right-click to favorite, which would sort the buffs to the top, then a hotkey to use all favorited buffs all at once.

Freeze Time and F11 bug

If you use the "Freeze Time" time and you use f11 to remove all the UI, the time continues.

Dedicated Server Connectivity Issue after 2 hours

The problem is after certain period of time, players can't join the server. It says "invalid operation at this state" I removed other mods to see if heros mod is the problem, yeah seems like it. Also is it possible to add auto save option because i have to change it noon for my dedicated server to save the game.

1 damage

i'l take 1 damage , why ? (every second)

Passwords are saved in plaintext

I just looked at my modloader folder to figure out what mod makes teleporters unplaceable in multiplayer and I just looked at the database json of this mod to see if there's something useful in there and I see that passwords are saved in plaintext. While we can argue that most people run private servers, since this mod requires you to login by applying a frozen debuff if you aren't logged this file can be used to read the passwords of any person that has connected to a server. This is generally bad because people will reuse passwords.
Could you possibly look into saving and checking the password as a hash (with or w/o salt)? There's plenty of resources online how to do it properly, but I generally link this one even though it applies mostly to webdev but should be analog in C#.

Disable Logins

Hello,
is it possible to disable logins? I play on a small private server and it gets annoying having to type in the credentials all the time.
Is there any way to disable the login based system and authenticate via steam?

-Dj

Wishlist: smarter smart cursor handling WRT infinite reach mode

It makes sense the smart cursor is disabled in infinite reach mode. It would be much nicer if instead of the current behaviour, the key bind for it (or a new one offered by HEROsMod) behaved as a toggle between infinite and smart modes while "infinite reach mode" was active.

That would make is much easier to take advantage of the things that both do well.

Dedicated Servers: HEROsMod Locks Up. Lose ability to connect to server.

I have discovered a serious glitch with this mod that occurs while the mod is installed on dedicated (24/7) servers, and can potentially cause problems in regards to the servers ability to save, as well as the overall playability of the server.

What Happens

The server, when left without players for a period of time (est. 2+ hours), the mod begins to glitch out and users are no longer able to log in, and are either left unable to connect to the server (roaming the server, being unable to interact with anything), or immediately losing connection and receiving one of two error messages. "Lost connection", or "Invalid operation at this state". This issue seems to be server-side, as it appears to occur almost universally among those attempting to connect. The only way to fix this problem is restarting the server.

It seems to possibly be tied to the autosave feature of servers, where the server automatically saves (about) 15 minutes after all players leave the server. It seems to break when it saves in this state.

The only mods that were installed on the server at the time were...
-Calamity
-Tremor
-Thorium
-HEROsMod

Before the addition of HEROsMod, there were no known connection issues.

HEROsMod Allows Items to Be Passed in With the Prefix Editor

My server uses the SSC (Server Side Characters) mod to ensure players can't bring in items from single player games. HEROsMod allows them to bypass this. I found a player with a chest full of platinum coins, and was able to figure out how this was done. First, I log out of my server character. Then using that same character, I create a single player world. Next, I take whatever item or stack of items I want and place it in the Prefix Editor. Any item will go in there, it doesn't need to be an item that can have a prefix. Then, leaving the prefix editor open, I exit the single player game. When I log back into the multiplayer server using that character, the Prefix Editor is open and the item is in there. Now I can just place it into my inventory on the multiplayer server.

Note that I tested on a non admin account. The player is, of course, allowed to use the Prefix Editor in their own single player game, but not allowed to use it on my server. This doesn't matter though. As long as the Prefix Editor is left open on logout, it is still open on login on the multiplayer server despite no permissions.

This seems like a bug with HEROsMod, but I'm not sure. This mod it is an essential mod for managing a multiplayer server, so any method you could give me to squash this bug would be greatly appreciated. At this point I am going to have to shut down my server until I can figure out how to prevent this. Thanks!

Add Support for ServerSideCharacter

JavidPack and Hero, thank very much for maintaining the project available and opensource, this is a great and complete stuff for admins servers!

Anyone could to implement support for ServerSideCharacter? It would be a very interesting addition, since it is already able to manage a server well as TShock already does on clients without mods.

Log out and in apparently causes instant respawn

"i use better multiplayer mod. (it is during the multi people try boss hunt, some character dies no respawn) and my server manage use hero's mod. ... during the boss, click the logout button is resurrection."

Nothing in the UI bar

I've installed this mod, as well as the cheat sheet mod and others, everything works fine, even cheatsheet, but, Hero's Mod for some reason doesn't show any icons in the UI bar. I've tried installing it from both the Mod Browser and by manually downloading and copying, I've also tried disabling the other mods, but it still doesn't seem to work.

image

Various Nitpicks & QOL Changes

  1. I believe inside the sub-menu for tiles, it should be separated into Tiles, Furniture & Walls, so you can choose between actual tiles to build a structure with.

  2. Minimize toolbar on esc so it's consistent with other menus.

Enter key when logging in freezing character.

"For some reason with the hero's mod, when I log in if I press enter after putting in my info, the character locks. Nothing on my keyboard works. BUT if I just press login with my mouse, I have no problems. What I think is happening is that when I hit enter it is opening the chat area, but I can not get it to close, and nothing I type shows up in the chat area. I am just stuck there. I can still use my mouse and interact with things around me, I just cant use any of the keyboard functions. The game runs fine even when I am hosting a multiplayer world. Everything works for everyone else but me." -- https://forums.terraria.org/index.php?threads/heros-mod-terraria-creative-mode-server-management-and-over-25-tools.44650/page-59#post-2137021

Server command console

admin tool to provide access to server console via client. It should allow server only commands and viewing output

Prefix bugs

Mod data is lost, mod prefixes aren't supported, prefixes can't be assigned to newly assignable items since ModPrefix was released.

Discord Shuazi233 Report Bugs

  1. After clicking the "Connected Player" button, it will be displayed in both "Offline Player" and "Online Player".

  2. It's impossible to ban off-line players. For some cheating players, they just need to log out and re-register their new account, then ignore the ban. I think we should cancel the registration function that allows user ID to be customized and convert it to the login registration that identifies the persona ID. That is, persona ID = registered ID.

  3. Also, some players who use color prefix ID will crash and restart the server when they enter the server.

4.Now in version 0.25, this problem will occur after a period of time.
"Invalid operation at this state"

More:
Shuazi233
@jopojelly Maybe you can not use frozen DEBUFF before login, and let it unilaterally prohibit movement, pick-up of items and map modification.

jopojelly
yeah, it's a relic from the past, I could do that, once I have time

Shuazi233
The problem now is that the server will become unregistered after a period of time. The errors prompted are "Lost connection" and "Invalid operation at this state".

jopojelly
yeah, not sure what that is about, might be fixed with 0.11

Shuazi233
"Invalid operation at this state" This error. The CMD window of the tmodloader server displays an error called. About the game Buff.

jopojelly
yeah, we fixed a bug related to this in 0.11, not sure if it's completely fixed there or not

Passwords are stored in a plaintext format

I find this to be a huge security flaw. There are MUCH better ways to do this.

Example: hash the passwords with bcrypt and a few salt rounds, which is a pretty secure way of preventing the takeover of user accounts.

I hope this gets addressed soon because its a huge flaw in what I've seen to be an amazing mod.

Add privacy policy or remove transmit of personal data

You are transmitting the Steam ID of every mod user at the loading of the mod and every hour afterwards still playing.
Because the steam ID, as well as the IP address of the user, are personal data, you shall declare in a privacy policy for which reason you collect these kind of data, for which time you store the collected data and build in a opt-out function. The other possibility is to just remove the data collection at all.

Tiny code change

Why is line 218 and 219 of this file using a formula like this children[children.Count - 1 - i] instead of simply this children[i]

Falling sand blocks overwrite each other when infinite reach is enabled.

To demonstrate the bug:

  1. Find a pile of sand of a known or measurable height.
  2. Mine it out completely, verify you have the exact number of blocks of sand.
  3. Drop sand from the (former) top of the pile to fill it from the bottom.
  4. Observe that it filled completely.
  5. Turn on infinite reach mode.
  6. Repeat 1-3
  7. Observe that you have not refilled completely.

My guess is that a block of sand is place, then in the next tick is converted to a "falling sand", and a second block is placed. This falling block is unpredictably overwritten by the next block. (Alternately, could happen when they land, in that two of them try to convert to "in place blocks" at the same time, in the same space, and overwrite each other.)

/auth command not working

I use the command in the console "HerosAdmin" in it and get the /auth command.
But when i type that command in the chat it does nothing, dosen't say you are now admin or anything and i don't get the hotbar either.

Hero's Mod Group Function

I really love Hero's Mod because it is a fully functional array of server management and commands, but an issue came up when I was trying to create groups. I tried making it to where staff had all admin privileges and all other players were set to default, which in my mind I thought this meant normal Terraria commands, but something went wrong in the process. My friends can't do anything except for kill and move around, interacting with NPCs, but they can't build or break anything. I tried editing their roles to fix this issue, but the icon that display all the users no longer appears for me since I joined under the Staff group I made which was supposed to have all privileges. I have tried uninstalling the mod, uninstalling and reinstalling Terraria and tModLoader, but nothing I do seems to fix this problem. I don't know if there is any command I could put in to override this, but any response to this issue would be helpful as googling this particular issue up came to nothing.

Region issues

Regions can't be created without being admin, despite the permissions suggesting otherwise.

Region visibility and region window don't disappear when permissions are lost.

Suggestion

add use option to regions so u can protect regions from using Magic Storage, Doors, etc. Just everything u can right click.

Saws and unlimited reach

Using the Sawtooth Shark with unlimited reach leads to it being stuck in "running, but not cutting things" mode until you toggle off the reach. It then stops running, and behaves as you might expect. I have not tested with any other chainsaw. I have, however, verified that it's infinite reach that triggers the issue.

While it is running as long as the left button is held down it can be used to cut things. Once released, though, nothing can be interacted with in the world, including trees. If that detail helps. :{

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.