PDA

View Full Version : Don't change your resource.s2z



Nytemair
05-01-2011, 05:28 AM
Pro tip: don't f&#! with your resources.s2z file, copy it, then play around with that.

I learned this the hard way and now i can't buy items in game, or buy alt avatars etc with the shop, plus I dc every game so if that happens you need to reinstall HoN.

tchackie
05-01-2011, 03:55 PM
Even if you copy the file its possible to mess things up. One game i couldnt use Homecoming stones, because i had another base.gamemechanics with modified targetshemes in my game folder.

EternalShade
05-02-2011, 02:47 AM
lol you dont even have to go that far depending on what your doing. like the hero i am working on atm. i just have a folder in my game director called shadow dancer with all the hero files in their, and hon reads those just fine.

Tafelpoot
05-02-2011, 05:46 AM
It's always safer when you give new names to your new entities, instead of editing existing ones... you can add a fixed prefix to all custom entities in a custom map.
Example, in the LoL port you can have "LoL_Hero_Blitz" with "LoL_Ability_Blitz_1" spawning "LoL_Gadget_Blitz_1" and so on ...
The handy thing is that they are all grouped in the spawner in test mode, and it shouldn't bug other spells.

But when you just start with scripting, it's easier to copy or unpack the whole resources0.s2z and to change a few values and see what it does.
I have some troubles with game.mechanics as well :) maybe I should consider a fresh and clean HoN install ...

Nytemair
05-02-2011, 07:48 AM
I've given mine new names/new folder setups etc, but I think it changed when i went into the stringtables to make tooltips for my new heroes =(

Doing a fresh install in E.T.A: 2 hours, 16 minutes. Basically when my net is fast again. =D

Oloko
05-02-2011, 08:13 AM
Yea you should never edit the resources0.s2z file. If you want to "overwrite" an existing entity/file, then simply extract it and edit that copy.
You can then recreate the file structure inside your game folder (explained here (http://forums.heroesofnewerth.com/showpost.php?p=13162587&postcount=23)), you can also create a new resourcesX.s2z file containing all your modification. Those two are used if you are creating custom content but that are not in a map. Because they are not "linked" to a map, they will be loaded at the game load. So if you want to play an official match, it's always better to remove them from your HoN folder.

If you are creating custom content for a map, you can simply put them in a folder called "resources" of your s2z map file. This will let you overwrite official entities, but only if you load your map. So this way you can still play official matches without a worry. There is still some issue with this way of doing (might need to load your map twice).

Like it was said, I would recommend you to never create entities that already exist, since the current engine has a bit of trouble to handle it.


If you want to ADD content to the official stringtables, then you simply need to create your own stringtable file: custom_entities_en.str

Then inside that file you can simply add your strings. The game will load the official entities_en.str and then add yours to the list. If you overwrite existing strings inside your file, then yours will be loaded rather than the official strings.
NOTE: even if your stringtables files are inside your map file, once they are loaded, they will not be unloaded (at least it was like that not too long ago) so if you overwrote official entities string, it will still keep yours if you join a official game. That is one more reason why it's always better to create your own entities and never edit the official ones.


I know it's really confusing at first, but the more you work with this, the easier it will get.

Demigod`
05-02-2011, 08:28 AM
That's not map! Why then it is in this forums?

Nytemair
05-02-2011, 10:30 AM
Thanks Oloko, cleared a crapload of stuff up for me and probably a lot of other people too. =]

ElementUser
05-02-2011, 01:16 PM
Never modify anything in resources0.s2z or you'll probably have to reinstall

._.

ALWAYS do the extract -> copy method that Oloko has laid out. That is how I do all my bugfixes.

Nytemair
05-03-2011, 11:37 PM
That's not map! Why then it is in this forums?

:scou: Of course this is map. D: