Results 1 to 10 of 11

Thread: How to do smaller mappacks (less download)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    The red line is the "definition" of the .csv file, while the blue line is the actual data. So which one do you need? Both.

    Count the position until "loadspec" in the definition in your red line example. Which position has it? 16

    Now count the 16th position in the actual data. Which string is that? mp_shipment

    16 is highly arbitrary, so you need to recount it for every map .csv file. And make sure that the actual data value for "loadspec" is always set to the name of the current map ($mapname.csv)

    That's what the Python script will check for later:

    PHP Code:
                elif row[loadspec_index] != mapname:
                    print(
    mapname"has invalid loadspec for"row[0]) 
    timescale 0.01

  2. The Following User Says Thank You to kung foo man For This Useful Post:

    sttte93 (14th March 2017)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •