rec.autos.simulators

SNETT: How to pack a data file

Ron Ayto

SNETT: How to pack a data file

by Ron Ayto » Tue, 28 Mar 2000 04:00:00

Hi,
I have noticed a few posts inquiring how to pack Snetterton into a data
file, so i have put together a simple instruction set, i hope it helps.

Firstly, you will need the two utilities, Pack.exe & Unpack.exe..

Copy all the files out of your GPL\Tracks\Snett folder into a temporary
folder, i called mine:  Snettemp

Now you have to use a text editor,  like , Notepad,  to make up a "PCK
" file, which holds all the file names that are to be included into the
"snett.dat" file..
Also, you will need to add up the file names you include in the "PCK"
file and insert that number into the "PCK" file,  like in the example i
have made below.

Or if you are too lazy to make up your own "PCK" file, then you could
just use my "PCK" file i made up for myself and included here for
reference.
The first line of your "PCK" file MUST be:  "snett.dat"  without the
rabbit ears, and the following line has to be the number of files you
have included in your  "PCK"  text file..

TAKE NOTE, if you use my "PCK" file, i deleted all the default setups
from the "Snett" folder, so if you wish to retain the default setup
files, the files that read: "setup.lo1",  "setup.lo2", "setup.lo3"  
etc etc, you will need to add them to my "PCK" file..
( don't forget to add the revised number to the "262" )
However, those setup files are not needed, as GPL defaults to a
standard default setup if there are no setup files located in the
specific track folder and i prefer to make my own setups anyway...

So to continue, using the text editor, open up a new text file called:
"snett.pck"   and add all the file names in the  "snettemp"  folder to
it, other than the following files, don't add these..

cntr_lod2.mip
cntr_wall1.mip
cntr_wall2.mip
maxrace.lp
minrace.lp
pass1.lp
pass2.lp
pit.lp
race.lp
record.ini
track.ini

The above files are best left in the  GPL\Tracks\Snett  folder.

Don't try packing or including files\filenames into your "PCK" file
that have 8 digit or longer file names,  you will be most upset at the
resulting errors that you produce..   :)

Below is the first few lines from my "snett.pck" file, to give you an
example of how to start it..

snett.dat
262
8treea.3do
8treea1.mip

The  "262"  is the total ammount of the files that i wanted to pack
into my  "snett.dat"  file after i repacked it.
The number  "262"  has to add up to the total ammount of file names you
have entered into the  "snett.pck"  txt file, don't count the first
line "snett.dat" or the "262" line  in your total file count...

After you have entered all the filenames into your  "snett.pck"  file,
add up the ammount of filenames you have in your "snett.pck" file and
enter that number where i have my number of "262",  then save it into
the "snetttemp" folder you just made up and exit from Notepad.

Make sure you have the file "Pack.exe" in your path statement, or copy
it into the  "snetttemp" folder before you go to the next step.

Open up a dos shell  and go to the "snettemp" folder and type:

pack snett.pck    [ENTER]

That will pack all the files that you added to the  "snett.pck" file
into a file called:  snett.dat.

Now, go to the GPL\Tracks\Snett  folder and delete all files from that
folder except for the following, these should remain in the
GPL\Tracks\Snett  folder:

cntr_lod2.mip
cntr_wall1.mip
cntr_wall2.mip
maxrace.lp
minrace.lp
pass1.lp
pass2.lp
pit.lp
race.lp
record.ini
track.ini

When you have done that, copy the file "snett.dat"  that you just
created, from the  "Snettemp" folder into the GPL\Tracks\Snett  folder.

You should now have a total of 12 files in your GPL\Tracks\Snett
folder, rather than the 260 odd you did have..

Hope that helps a bit.

Cheers,
Ron

  Snett.pck
2K Download
Jason Mond

SNETT: How to pack a data file

by Jason Mond » Tue, 28 Mar 2000 04:00:00

Hi Ron,

Thanks for the information!  I can't wait to try this out!

Jason.


> Hi,
> I have noticed a few posts inquiring how to pack Snetterton into a data
> file, so i have put together a simple instruction set, i hope it helps.

> <snip>
> You should now have a total of 12 files in your GPL\Tracks\Snett
> folder, rather than the 260 odd you did have..

> Hope that helps a bit.

> Cheers,
> Ron

--
Jason Monds
http://www.proracingclub.com - Pro Racing Club! (N3, GPL)
http://members.home.net/stuff.mondsj/csp - Car Sim Project
(Please remove 'no extra spork' when replying)
Bruce Kennewel

SNETT: How to pack a data file

by Bruce Kennewel » Wed, 29 Mar 2000 04:00:00

Anyone ever told you that you're a wonderful human being, Ron? :-)
Thanks mate....now I can tidy my Snett folder!

--
Regards,
Bruce Kennewell,
Canberra, Australia.
---------------------------


Benjam

SNETT: How to pack a data file

by Benjam » Wed, 29 Mar 2000 04:00:00

kewl - I was wondering if I could put everything into a .dat, just
hadn't got around to trying it, now I know, thanx

one question tho' - why leave the three .mip files out of the .dat -
does it slow things down or cause an error - just curious since it
seems none of the other tracks have any external .mip files

On Mon, 27 Mar 2000 23:15:43 GMT, "Ron Ayton" <ronay...@bigpond.com>
wrote:

>This is a multi-part message in MIME format.

>------=_NextPart_000_01BF9897.0B50EDC0
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 7bit

>Hi,
>I have noticed a few posts inquiring how to pack Snetterton into a data
>file, so i have put together a simple instruction set, i hope it helps.

>Firstly, you will need the two utilities, Pack.exe & Unpack.exe..

>Copy all the files out of your GPL\Tracks\Snett folder into a temporary
>folder, i called mine:  Snettemp

>Now you have to use a text editor,  like , Notepad,  to make up a "PCK
>" file, which holds all the file names that are to be included into the
>"snett.dat" file..
>Also, you will need to add up the file names you include in the "PCK"
>file and insert that number into the "PCK" file,  like in the example i
>have made below.

>Or if you are too lazy to make up your own "PCK" file, then you could
>just use my "PCK" file i made up for myself and included here for
>reference.
>The first line of your "PCK" file MUST be:  "snett.dat"  without the
>rabbit ears, and the following line has to be the number of files you
>have included in your  "PCK"  text file..

>TAKE NOTE, if you use my "PCK" file, i deleted all the default setups
>from the "Snett" folder, so if you wish to retain the default setup
>files, the files that read: "setup.lo1",  "setup.lo2", "setup.lo3"  
>etc etc, you will need to add them to my "PCK" file..
>( don't forget to add the revised number to the "262" )
>However, those setup files are not needed, as GPL defaults to a
>standard default setup if there are no setup files located in the
>specific track folder and i prefer to make my own setups anyway...

>So to continue, using the text editor, open up a new text file called:
>"snett.pck"   and add all the file names in the  "snettemp"  folder to
>it, other than the following files, don't add these..

>cntr_lod2.mip
>cntr_wall1.mip
>cntr_wall2.mip
>maxrace.lp
>minrace.lp
>pass1.lp
>pass2.lp
>pit.lp
>race.lp
>record.ini
>track.ini

>The above files are best left in the  GPL\Tracks\Snett  folder.

>Don't try packing or including files\filenames into your "PCK" file
>that have 8 digit or longer file names,  you will be most upset at the
>resulting errors that you produce..   :)

>Below is the first few lines from my "snett.pck" file, to give you an
>example of how to start it..

>snett.dat
>262
>8treea.3do
>8treea1.mip

>The  "262"  is the total ammount of the files that i wanted to pack
>into my  "snett.dat"  file after i repacked it.
>The number  "262"  has to add up to the total ammount of file names you
>have entered into the  "snett.pck"  txt file, don't count the first
>line "snett.dat" or the "262" line  in your total file count...

>After you have entered all the filenames into your  "snett.pck"  file,
>add up the ammount of filenames you have in your "snett.pck" file and
>enter that number where i have my number of "262",  then save it into
>the "snetttemp" folder you just made up and exit from Notepad.

>Make sure you have the file "Pack.exe" in your path statement, or copy
>it into the  "snetttemp" folder before you go to the next step.

>Open up a dos shell  and go to the "snettemp" folder and type:

>pack snett.pck    [ENTER]

>That will pack all the files that you added to the  "snett.pck" file
>into a file called:  snett.dat.

>Now, go to the GPL\Tracks\Snett  folder and delete all files from that
>folder except for the following, these should remain in the
>GPL\Tracks\Snett  folder:

>cntr_lod2.mip
>cntr_wall1.mip
>cntr_wall2.mip
>maxrace.lp
>minrace.lp
>pass1.lp
>pass2.lp
>pit.lp
>race.lp
>record.ini
>track.ini

>When you have done that, copy the file "snett.dat"  that you just
>created, from the  "Snettemp" folder into the GPL\Tracks\Snett  folder.

>You should now have a total of 12 files in your GPL\Tracks\Snett
>folder, rather than the 260 odd you did have..

>Hope that helps a bit.

>Cheers,
>Ron
>------=_NextPart_000_01BF9897.0B50EDC0
>Content-Type: application/octet-stream; name="Snett.pck"
>Content-Transfer-Encoding: 7bit
>Content-Description: Snett.pck (PCK File)
>Content-Disposition: attachment; filename="Snett.pck"

>snett.dat
>262
>8treea.3do
>8treea1.mip
>8treea2.mip
>8treeb.3do
>8treeb1.mip
>8treeb2.mip
>8treec.3do
>8treec1.mip
>8treec2.mip
>8treed.3do
>8treed1.mip
>8treed2.mip
>8treee.3do
>8treee1.mip
>8treee2.mip
>altfence.mip
>Armco_s.mip
>armco2.mip
>Asphalt.mip
>banking.mip
>bill_1.3do
>bill_1.mip
>bill_2.3do
>bill_2.mip
>bill_3.3do
>bill_3.mip
>bill_4.3do
>bill_4.mip
>bill_5.3do
>bill_5.mip
>bill_6.3do
>bill_6.mip
>bill_bck.mip
>blkroof.mip
>bnkad_1.3do
>bnkad_1.mip
>bnkad_2.3do
>bnkad_2.mip
>bnkad_3.3do
>bnkad_3.mip
>bnkad_4.3do
>bnkad_4.mip
>bnkad_5.3do
>bnkad_5.mip
>boothfrn.mip
>boothw.mip
>bpole2.mip
>brkwall.mip
>btm_fars.mip
>bwpic.pbf
>cntr_lod.mip
>cntr_top.mip
>conc.mip
>concrete.mip
>cortibck.mip
>cortibon.mip
>cortibot.mip
>cortigrl.mip
>cortina.3do
>cortirof.mip
>cortishd.mip
>cortisid.mip
>cortiwnd.mip
>cpost.3do
>curb.mip
>curb2.mip
>dirt.mip
>dudark.mip
>dufrnt.mip
>dupeo1.mip
>dupeo2.mip
>duspt.mip
>dustand.3do
>e.mip
>e1.mip
>e2.mip
>e3.mip
>e4.mip
>essobig.mip
>essobrdg.3do
>essoothr.mip
>essosm2.mip
>essosml.mip
>essound.mip
>event.pbf
>fa.3do
>faextin.mip
>famen.mip
>fasign.mip
>fgback.mip
>fgfero.mip
>fgferos.mip
>fgfrow.mip
>fgpeo1.mip
>fgpeo2.mip
>fgroof.mip
>fgstand.3do
>fgsupt.mip
>field.mip
>flagger.3do
>flagger.srb
>Grass.mip
>gridbox.mip
>groove.mip
>h_gatea.mip
>h_gateb.mip
>h_treea.mip
>h_treeb.mip
>h_treec.mip
>h_treed.mip
>hairpin.3do
>hare.3do
>hare.mip
>Hay02.mip
>hay03.mip
>hayend.3do
>haystart.3do
>haywall.mip
>horiz.3do
>hq.3do
>hqdoor.mip
>hqroof.mip
>hqsign.mip
>hqwalls.mip
>hqwindow.mip
>i_four.3do
>i_four.mip
>i_one.3do
>i_one.mip
>i_three.3do
>i_three.mip
>i_two.3do
>i_two.mip
>intopin.3do
>jenks.3do
>jenks1.MIP
>john.3do
>john.mip
>johnside.mip
>lft_hi.mip
>loo.3do
>loo_frnt.mip
>loo_roof.mip
>loo_s.mip
>mk_pa.3do
>mk_pa.mip
>mk_t1a.mip
>mk_t1b.mip
>mk_tree1.3do
>mk_tree2.3do
>mkp_2563.mip
>mpost.3do
>mtn01.mip
>mtn02.mip
>mtn03.mip
>mtn04.mip
>mtn05.mip
>mtn06.mip
>mtn07.mip
>mtn08.mip
>n.mip
>n1.mip
>n2.mip
>n3.mip
>n4.mip
>notjohn.3do
>notjohn.mip
>p_wfive.mip
>p_wfour.mip
>p_wone.mip
>p_wsix.mip
>p_wthree.mip
>p_wtwo.mip
>padfence.mip
>Page0.pbf
>Page1.pbf
>Page2.pbf
>Page3.pbf
>Page4.pbf
>Page5.pbf
>peocpost.mip
>peompost.mip
>pfa.3do
>pfb.3do
>pfc.3do
>pfd.3do
>pgroup1.3do
>pgroup2.3do
>pgroup3.3do
>pit_cast.mip
>pit_grln.mip
>pit_hi1.mip
>pit_hi3.mip
>pit_low1.mip
>pit_luca.mip
>pit_shel.mip
>pit_win2.mip
>pitppl1.mip
>pitppl2.mip
>pitppl3.mip
>pitppl4.mip
>pitsL.3do
>pitsR.3do
>pole.3do
>pole2.mip
>post3.MIP
>presscnt.3do
>pump.mip
>sc_1.mip
>sc_2.mip
>sc_3.mip
>sc_brk.mip
>sc_redb.mip
>sc_redf.mip
>sc_roof.mip
>sc_top.mip
>scrut.3do
>sentfrnt.mip
>sentside.mip
>sfline.mip
>sign100.3do
>Sign100.mip
>sign200.3do
>Sign200.mip
>sign300.3do
>Sign300.mip
>signback.mip
>snett.3do
>snett.cam
>snett.trk
>ssbilli.mip
>ssbillo.mip
>ssbridge.3do
>ssfencei.mip
>ssfenceo.mip
>ssreinf.mip
>ssroad.mip
>ssslope.mip
>starter.3do
>station.3do
>stion_f.mip
>stion_r.mip
>stion_s.mip
>tpole2.mip
>tr_co.mip
>Tree01.mip
>Tree02.mip
>treerowa.mip
>treerowb.mip
>twr.3do
>twrframe.mip
>twrfrnt1.mip
>twrfrnt2.mip
>twrroof.mip
>twrside.mip
>twrtop1.mip
>Wal2_t.mip
>wline.mip
>woodf_s.mip
>woodf_sb.mip
>woodf_sc.mip
>woodf_sd.mip

>------=_NextPart_000_01BF9897.0B50EDC0--

Ron Ayto

SNETT: How to pack a data file

by Ron Ayto » Thu, 30 Mar 2000 04:00:00



I have been called a lot of things in my time Bruce, but believe me, "a
wonderful human being" has never been one of them..  :))

Cheers,
Ron

Ron Ayto

SNETT: How to pack a data file

by Ron Ayto » Thu, 30 Mar 2000 04:00:00



Hi Ben,

The mip files i left out of the PCK file, all have longer than 8
character names, hence the packer will not work with them.
You will gaet an error if you try to pack them into a data file.
As there are only 3, i didn't worry about fixing them, as 3 mip files
extra in the folder are better than 260 odd.. :))

Cheers,
Ron

Bruce Kennewel

SNETT: How to pack a data file

by Bruce Kennewel » Thu, 30 Mar 2000 04:00:00

Well, now you can add that to the list :-)

--
Regards,
Bruce Kennewell,
Canberra, Australia.
---------------------------




> > Anyone ever told you that you're a wonderful human being, Ron? :-)
> > Thanks mate....now I can tidy my Snett folder!

> > --
> > Regards,
> > Bruce Kennewell,
> > Canberra, Australia.
> > ---------------------------

> I have been called a lot of things in my time Bruce, but believe me, "a
> wonderful human being" has never been one of them..  :))

> Cheers,
> Ron


rec.autos.simulators is a usenet newsgroup formed in December, 1993. As this group was always unmoderated there may be some spam or off topic articles included. Some links do point back to racesimcentral.net as we could not validate the original address. Please report any pages that you believe warrant deletion from this archive (include the link in your email). RaceSimCentral.net is in no way responsible and does not endorse any of the content herein.