Author Topic: module size  (Read 1927 times)

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
module size
« Reply #30 on: May 29, 2012, 01:43:02 pm »


               something else i developed:

#!/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.
               
               

               
            

Legacy_JediMindTrix

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +0/-0
module size
« Reply #31 on: June 01, 2012, 09:51:36 am »


               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?
               
               

               
            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
module size
« Reply #32 on: June 01, 2012, 07:27:05 pm »


               

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.
               
               

               
            

Legacy_JediMindTrix

  • Sr. Member
  • ****
  • Posts: 383
  • Karma: +0/-0
module size
« Reply #33 on: June 10, 2012, 05:14:54 am »


               I posted that question in this thread because Guile posted his scripts in this thread too, which were posted in relation to reducing module size by reducing the number of script resources used. That is the same goal I had in mind with learning how to implement them correctly, and asked that quesiton in this thread so that other's with less than average script ability wouldn't have to go on a merry search-engine goose chase to find what they were looking for.

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 .
                     
                  


            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
module size
« Reply #34 on: June 10, 2012, 12:42:15 pm »


               I suggest you lookup (*click on) Guile (the username next to his post in this thread) - there are links there to the posts he's made, usually there is one per package he releases (sometimes more) - but those are the best place to discuss his scripts and specifically the ones you want to use. I only suggest this as the topic here is module size and only tangetically related.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
module size
« Reply #35 on: June 16, 2012, 01:59:56 pm »


               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?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
module size
« Reply #36 on: June 16, 2012, 06:24:24 pm »


               

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.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
module size
« Reply #37 on: June 17, 2012, 01:04:14 am »


               

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.