module size
#26
Posté 22 mai 2012 - 05:22
I had made the mistake of adjusting bioware's spell include, and have since had to recompile a great number of spells to make use of my changes - which could kill your quest to reduce module size.
#27
Posté 22 mai 2012 - 06:13
henesua wrote...
Are you putting wildmagic in your custom spell hook? Or adjusting the bioware spells include?
I had made the mistake of adjusting bioware's spell include, and have since had to recompile a great number of spells to make use of my changes - which could kill your quest to reduce module size.
You can mass delete any NSS files from your hosted copy of the module (keep a separately named copy to build in) and cut your script impact in half resource wise. If using the CEP you can add your scripts (and convos too) to your server's copy of "cep2_custom.hak" and then add that hak as the topmost hak in your module. Players would not require your version. If you don't use the CEP, then you can likely do the same with any other topmost hak you do use.
#28
Posté 23 mai 2012 - 09:48
but that's cheating. i'm trying to develop methods of getting rid of stuff i don't need. not just shoving it in the closet.
#29
Posté 23 mai 2012 - 09:50
henesua wrote...
Are you putting wildmagic in your custom spell hook? Or adjusting the bioware spells include?
I had made the mistake of adjusting bioware's spell include, and have since had to recompile a great number of spells to make use of my changes - which could kill your quest to reduce module size.
the original PW creator modified every bioware spell to include a check for the wild magic. i've been deleting those modified spells and taking advantage of the spellhook provided by bioware to do the wild magic check in there.
though there are several custom spells in the module that i've had to leave rewritten. but i've still been using the spellhook to do that and combining them all into one giant include.
#30
Posté 24 mai 2012 - 06:55
http://www.dalakora....ads/scripts.svg
i could look at it all day long, but it's still pretty difficult to get any useful information out of it. maybe if i modified the code to generate individual graphs for each script?
i still need to put work into developing a system to detect duplicated scripts - the toolset's script generator will create the same conditionals or action scripts over and over if you use the wizard.
PS: it's a LOT easier to view the above graph if you have a viewer capable of svg files. trying to use a browser is VERY unwieldy.
#31
Posté 29 mai 2012 - 12:43
#!/bin/sh
cd temp0
for i in *.ncs
do
for j in *.ncs
do
[ "$i" = "$j" ] && continue;
DIFF=`diff $i $j`
if [ -z "$DIFF" ]
then
echo $DIFF > /tmp/foo/$i-$j.txt
fi
done
done
a shell script to compare the compiled scripts and print out a list of files that are the same. it skips comparing the file to itself, but it's not smart enough to skip comparing a -> b and b -> a.
i started out comparing the source scripts, but it wasn't robust enough. it would flag files as being different if there were extra new lines or comments. the compiled scripts strip all of that out. the downside is that include files are all the same (since "nothing" is compiled into them). this, however, gives fewer false positives than the other way was giving false negatives.
this script (with some very minor modifications) works just fine with dialogs and i presume some other file types.
#32
Posté 01 juin 2012 - 08:51
#33
Posté 01 juin 2012 - 06:27
NineCoronas2021 wrote...
I would really like to use _Guile's scripts, but exactly how to get it 'installed' and how it works is still eluding me. Can anyone offer assistance?
Totally off topic. Start your own thread or post in one of Guiles' threads regarding the specific package you are interested in using.
#34
Posté 10 juin 2012 - 04:14
That said...
ehye_khandee wrote...
post in one of Guiles' threads regarding the specific package you are interested in using.
Please direct me to the relevant thread and I will happily comply.
-NineCoronas
Modifié par NineCoronas2021, 10 juin 2012 - 04:20 .
#35
Posté 10 juin 2012 - 11:42
#36
Posté 16 juin 2012 - 12:59
#37
Posté 16 juin 2012 - 05:24
Knight_Shield wrote...
kalbaern do you mean to say I could take all my scripts since using cep and put them in a hak if not modifyng them to shrink module size?
Yes, That is what he is saying.
#38
Posté 17 juin 2012 - 12:04
Lightfoot8 wrote...
Knight_Shield wrote...
kalbaern do you mean to say I could take all my scripts since using cep and put them in a hak if not modifyng them to shrink module size?
Yes, That is what he is saying.
Scripts and Conversations are both good candidates to use in a serverside only version of the cep2custom hak.





Retour en haut






