So I went through and did it all up nice and pretty in Photoshop, here's the initial result.Īlternate link since the above host seems to not want to work. I'll post the code to that plugin soon I guess, I just need to glue all stuff I did together into one release. That's also the reason for the artifacts in that picture - the ray hit something invisible I guess. This is possible but for whatever reason reading the texture of the collider is disallowed so I could not get the pixel color but instead had to resort to fake color the different colliders. Unfortunately, my original approach failed - I wanted to actually extract the pixel color at the spot the ray collided with the world. That gives me a big-ass JSON file which I then used to color stuff in gray scale. I basically iterate over the whole (X,Y) space and do a Ra圜ast from the sky straight down and see what it collides with. It contains data structures that divide the world map into cells and stores what can spawn (and its spawn rate by the way) in them for each entity (like Tokars, big rocks, Shigis, Owrong plants.).įor the topological map, I've abused ray casting. The resource nodes map is generated from the data stored in CreatureSpawnDirector which is initialized at server start from the loaded map. I've written a custom Oxide plugin for that. Also, the map dumping will take quite a while and as thus should be used as a single-shot code as I did on my toy dedicated server. You probably don't want to use this on your real Hurtworld server, I never wrote C# code until this and the code probably sucks and should not run in the background. The output from DumpStuff() results in a file "resource_map" which the Python script uses to generate the actual image. After the server is initialized, the plugin will do its magic and dump a JSON file into Oxide's data directory. So how to use it? Put the 'MiniPlugin.cs' file into your Oxide plugin directory, uncomment either DumpStuff() or RenderMap() before, restart your server. Python Script to generate the resource node PNG It works but I wouldn't say it's pretty ) Update 3Īlright I found some time, here's my resources used to do this: It's pretty ugly but Oxide doesn't give you real filesystem access, so you can only use its JSON writer. That's funny for some scenarios (the rad towns with their tiny pixels are fun) but some weirdo glitches appeared, where I assume the ray casting hit something I wasn't expecting, producing artifacts like those weird bars near the road.Īt least now you can get a rough idea of where the node spawns are. What I did was query the actual in-game map for colliders, extracted their position, gave them some random color. UpdateĮdit: Map overlayed with the resources HEREĪs you can see, it's partially useful, and partially shitty. I'll probably release the full data (it contains spawns for everything including animals, plants, ores) as JSON soon because I suck at visualizing stuff and I assume our community can do way better. Oh and those single pixels are spawns I haven't given a color to, like animal spawns and stuff. The 3 rare ores are obvious, orange is coal, pink is the explodable rocks, brown is all types of wood, that yellow thing is those single wood nodes on the ground I used to get an orientation, iron nodes are gray. Targeted towards hardcore gamers, Hurtworld aims to punish.I've always wondered if it's possible to create an actual map of the nodes ingame so I did just that. Create alliances, and destroy your enemies. But the biggest threat out there is other players. Tame your surroundings, Build a base, explore your world. Battle Hunger, Cold, Heat, and the dangerous environment around you. You will constantly have to decide which is the biggest threat, the player opposite you or the creatures that will hear your gunshot. Designed for fast skill based PVP and PVE. Will you settle for Bows and Arrows and a Campfire, or push deeper into the map and start scavenging for Vehicle Parts and better Weapons?īuilt from the ground up with solid multiplayer foundations. It will also throw more dangerous creatures, harsher Environments and new challenges at you that can't be taken on without the proper Gear or refined skill. When you overcome that challenge and find a level of comfort it's a great feeling, but what do you do next? Hurtworld tempts you out of your comfort zone with rich Loot, better Loot and higher Tech. These experiences are what make a survival game. That feeling when you're freezing to death trying to make a fire, or you're defenceless being chased by Creatures. Hurtworld is a hardcore multiplayer survival FPS with a focus on deep survival progression that doesn't become trivial once you establish some basic needs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |