Small adjustments: Theme and style/Snowstorm, itchy barrels

8 replies [Last post]
Hoot
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

I've made some minor adjustments to Theme:Snow and Style: balanced random weapons. Is it OK to post them here?

Nothing fancy, but just if someone is interested in that without having to change the files himself, please have fun!

Snow theme:
just the Snow theme. But now a snowstorm so the stacking effect of snow comes to bearing. Red flakes when it comes to Sudden Death.

Random weapons:
Now with Barrel health set to 34 so you can still vounce them around a bit, but they explode much faster //EDIT and much more barrels ...//.
Unlimited lamp and rope for better burrowing and moving around (very intersting in my view together with making use of random stuff).
Rounds and sudden death time are longer now.

Place in [strike]/themes re. in /Scripts/Multiplayer[/strike] the DLC folder.

https://dl.dropboxusercontent.com/u/23158123/slightadjustments.hwp

Will be online for some days.

(BTW, how about accumulating water, like snow but fluit and with drowning capabilities, for a Rain theme?)

nemo
nemo's picture
User offline. Last seen 1 week 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

You should package this as a .hwp so it is easier for people to add and remove.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Hoot
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

nemo allegedly wrote:

You should package this as a .hwp so it is easier for people to add and remove.

Copuld you just point me to the hwp documentation/required program? Than I would save time to look it up myself ... I couldn't find info in the Wiki. Thanks!

sheepluva
sheepluva's picture
User offline. Last seen 2 days 22 hours ago. Offline
Joined: 2009-07-18
Posts: 563

Hoot allegedly wrote:

nemo allegedly wrote:

You should package this as a .hwp so it is easier for people to add and remove.

Copuld you just point me to the hwp documentation/required program? Than I would save time to look it up myself ... I couldn't find info in the Wiki. Thanks!

.hwp is basically a renamed .zip file that contains the changed files within their respective Data-directories.

So in your case the contents of the .hwp (which is a zip file) should look something like this:

  • Scripts/Multiplayer/Balanced_Random_Weapon_roping.lua
  • Themes/Snowstorm/theme.cfg
  • Themes/Snowstorm/Snowball.png
  • Themes/Snowstorm/Sky.png
  • ...

That way people can put your .hwp package in their personal Data folder (where DLC packages go to) instead of modifying their installed Hedgewars.

Start Hedgewars -> click the button for downloadable content -> click the button to open your personal package/Data folder.

Whenever Hedgewars is started it will look in that Folder for .hwp files and load their contents.

PS: consider removing the __MACOSX and Snowstorm/theme_old.cfg

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Hoot
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

Wow! Amazing! Great mechanism.

Uploaded and updated, https://dl.dropboxusercontent.com/u/23158123/slightadjustments.hwp .
Now I will find out where this DLC folder should be EDIT found!! Smile

sheepluva
sheepluva's picture
User offline. Last seen 2 days 22 hours ago. Offline
Joined: 2009-07-18
Posts: 563

Hoot allegedly wrote:

Wow! Amazing! Great mechanism.

Agreed!
unC0Rr made that happen by making Hedgewars use a virtual Filesystem called PhysicsFS - it can map parts of the real Filesystem and contents of archives together into a common directory structure Smile

Also:
I tested your .hwp, the BRW with ropes is a nice idea and might be more interesting for many players than normal BRW Smile
Snowstorm has some heavy snow right there, which is probably too much to do for slow computers though Big Grin

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Hoot
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

Here they come: Two more questions! Health Pickup

First: Where are the config files for the "weapon" and "scheme" (f. ex. "Pro Mode") tab located? I can edit "style"* (Balanced RW etc.) but cannot find the files for the other two. Maybe a case of blindness on my side?

Second: How can I *allow* to change weapons or theme settings when writing a "style" script? Right now, both option tabs are disabled when I customize Balanced Random Weapons.

Oh and one last: Any possibility to upload customized styles in the wiki, or do they have to be uploaded to a third party host?

Thanks!

*) Sorry I am not using the English localization, so I am not sure on the correct names.

mikade
mikade's picture
User offline. Last seen 13 weeks 6 days ago. Offline
Joined: 2010-10-22
Posts: 355

That was three questions.

1. They are in your personal/user Hedgewars folder. That is to say, up one level from the personal data folder you were using earlier. The files you want are weapons.ini and schemes.ini respectively.

2. You need to include a .cfg file for your style. The file should have the same name as your your style, only it should be a .cfg instead of a .lua. The config file is just a glorified text file and specifies what scheme to choose by default. BRW, for example, cannot be edited because it's contents are:
Default
locked

3. Usually third parties or Hedgewars affiliates like http://hh.unit22.org/, but if you make something that is not terrible and poke a developer they are usually willing to put it into the DLC section.

I hope that helps.
Good luck with your editing.

edit: It is worth noting that weapon / scheme load-outs are not easily shareable at this point. If you are creating something you intend to distribute, I would script the values/weapons you want in your mode in the .lua file. If you do that, you will not need a special weapons/scheme ini.

mikade
Hedgewars Developer

Hoot
User offline. Last seen 4 years 13 weeks ago. Offline
Joined: 2013-12-14
Posts: 51

Thanks, great! Works perfectly.

As for the DLC: I put both Snowstorm and Balanced Random Weapons with Itchy Barrels here:

https://dl.dropboxusercontent.com/u/23158123/Snowstorm.hwp

https://dl.dropboxusercontent.com/u/23158123/BRW_barrel.hwp

So if this is intersting, someone could grab it an load it into the DLC, thanks!

mikade allegedly wrote:
That was three questions.

Therefore the "oh and one last" ... came up after first editing Wink Smiley

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]