How to carry more weapons? [Question]

Talk about Severance Blade of Darkness modifications and maps here. No tips or tech support questions please, use the forum above. Note that the game is rated 18 so some content may be unsuitable for younger readers.

Moderators: Ade, prospero

ReMaX
Hatchling
Posts: 2
Joined: Fri Apr 25, 2008 2:03 pm
Location: Germany

How to carry more weapons? [Question]

Postby ReMaX » Sun Aug 23, 2009 2:33 pm

BoD has so many great weapons, but you can only carry three a time (since the bow takes one space away constantly). I already searched this forum but didn't find anything too useful.

I set the max number of weapons to 15 in the savefile, however, I can only cycle through 5 weapons. If I carry 5+, I have to drop one to be able to cycle through the remaining 5 again.

So there is a cycle command for 5 weapons (since the game sets the weapon space from 4 to 5 when you get the sword of ianna).

How do I add more cylce commands? How do I stop the game from setting the weapon space to 5 once I get to the sword of ianna?

Did anybody make such a mod yet? It would make BoD even more perfect to me! Please help...

User avatar
prospero
Ancient Dragon
Posts: 1712
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Postby prospero » Sun Aug 23, 2009 9:24 pm

Hi ReMax.[:D]

It can be done but you need to edit some files.

In Lib/Basic_Funcs.py line 214 there is a parameter:

inv.maxWeapons = 5

This gets set to 4 at the start of the game (can't remember where exactly......) and as you observe it gets set back to 5 in the Temple map to allow an extra slot for the Ianna Sword. That's the easy part. I fyou were to set max weapons to 14 and to 15 in the Temple you still can't select the weapons as you need to insert some extra slots in the scorer widgets code. I've done this before, but I can't remember exactly how to do it.[:I]

I'll see if I can figure it out.[8)]

durruti
Hatchling
Posts: 8
Joined: Wed Jun 02, 2010 12:19 am
Location: Germany

Postby durruti » Wed Jun 09, 2010 4:58 am

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">In Lib/Basic_Funcs.py line 214 there is a parameter:

inv.maxWeapons = 5<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">
??
that line reads:

Code: Select all

inv.maxObjects=20
you can increase the weapon slots in lib/gamestate.py and scripts/gotomapvars.py. after that you have to do something about weapon cycling in lib/scorer.py:
change lines 604-605 from:

Code: Select all

RInitAlpha=[1.0,0.3,0.2,0.1,0.05] RInitPositions=[(5,10),(35,20),(75,30),(110,40),(140,50)]
to

Code: Select all

RInitAlpha=[1.0,0.3,0.25,0.2,0.15,0.1,0.05] RInitPositions=[(5,10),(35,20),(75,30),(110,40),(140,50),(140,50),(140,50)]
(this increases possible cycle slots from 5 to 7)

and in lib/widgets/scorerwidgets.py:
change lines 633-636 from:

Code: Select all

class B_HandWidget(BUIx.B_FrameWidget): def __init__(self,Parent,Name,width,Height,Side, InitObjAlpha=[1.0,0.3,0.2,0.1,0.05], InitObjPositions=[(5,10),(35,20),(75,30),(110,40),(140,50)],
to

Code: Select all

class B_HandWidget(BUIx.B_FrameWidget): def __init__(self,Parent,Name,width,Height,Side, InitObjAlpha=[1.0,0.3,0.25,0.2,0.15,0.1,0.05], InitObjPositions=[(5,10),(35,20),(75,30),(110,40),(140,50),(140,50),(140,50)],
(same as above, you should get the idea...)

i'm currently playing with 6 weapon slots instead of 4 but i'm not yet in the temple...

NolanDaneworth
Hatchling
Posts: 1
Joined: Sun Apr 02, 2017 6:59 pm

Re: How to carry more weapons? [Question]

Postby NolanDaneworth » Sun Apr 02, 2017 7:01 pm

I understood how to add cycling, but how to add max weapons in lib/gamestate.py and script/gotomapvars.py ???
Does anybody still remember this ?

nkay08
Hatchling
Posts: 1
Joined: Thu Apr 20, 2017 4:45 pm

Re: How to carry more weapons? [Question]

Postby nkay08 » Thu Apr 20, 2017 5:02 pm

I understood how to add cycling, but how to add max weapons in lib/gamestate.py and script/gotomapvars.py ???
Does anybody still remember this ?
I have looked around the internet but found no definite answer. So I fiddled around a bit and now it works for 8 weapons.

You need to change two lines in lib/scorer.py to

Code: Select all

RInitAlpha=[1.0,0.4,0.3,0.2,0.1,0.08,0.05,0.025] RInitPositions=[(5,10),(35,20),(75,30),(110,40),(140,50),(160,60),(180,70),(200,80)]
I don't know if it really is necessary, but I've added following lines to each DefFuncs.py for each singleplayer relevant map.

Code: Select all

char=Bladex.GetEntity("Player1") inv=char.GetInventory() inv.maxWeapons=8
Upon starting a new game you are then able to pick up up to 8 weapons.
This does not work on savegames, but once you loaded a savegame you can choose to restart that level from the load menu? and it starts working.

Feel free to adapt the values if you need more/less weapons.

If you are lazy you can donwload all the edited files here:https://mega.nz/#!Ru52laQQ!nFB1l7uCRav2 ... 2llftPho64


Return to “Severance BoD: Modding Community”

Who is online

Users browsing this forum: No registered users and 1 guest