WAC File maximum length

Post Reply
User avatar
Windstalker-PG-
Administrator
Administrator
Posts: 1245
Joined: Sat May 22, 2010 11:04 am

WAC File maximum length

Post by Windstalker-PG- » Mon Mar 14, 2016 7:32 pm

I found out that the maximum length of a WAC file is 9,000 characters. I was having issues with the Snowbound WAC not playing all the way through, stopping before the end of the map. I had modified the WAC by adding the colors to the text i.e. <cff5000> to all the text. once I did that, the file would only play partway through. (I had 9,919 characters at that point). Once I edited the WAC to below 9,000 it started playing again.
Image
Image
When you hear the Wind.. You're already dead
Image

User avatar
Tonto7-PG-
Squad Member
Squad Member
Posts: 1106
Joined: Mon Oct 31, 2011 11:48 pm
Location: Scottsdale, AZ
Contact:

Re: WAC File maximum length

Post by Tonto7-PG- » Tue Mar 15, 2016 7:05 pm

Hhmmm that is interesting, seems there is always some kind of limit.
Image
Image
"The government is not the solution to the problems, it is the problem and it has become increasingly obvious."

Image

User avatar
Country Joe-PG-
Squad Member
Squad Member
Posts: 1925
Joined: Sun May 30, 2010 12:29 pm
Location: USA

Re: WAC File maximum length

Post by Country Joe-PG- » Fri Mar 18, 2016 5:31 pm

I don't understand Wind. How do I find out how many characters there are? All I see is
the number of lines used at the bottom of my Notepad WAC files.
Image
Image

User avatar
huntor
PrimeTech Administrator
PrimeTech Administrator
Posts: 1177
Joined: Mon Sep 27, 2010 12:00 am

Re: WAC File maximum length

Post by huntor » Fri Mar 18, 2016 6:24 pm

You can use textpad or Notepad++ to create wac files as it is just a txt file. The ammo.def file for the bomod has 6262 lines of code lmao. Items.def has 27379.
Datacenter Connection 3-22-14
Image

User avatar
Country Joe-PG-
Squad Member
Squad Member
Posts: 1925
Joined: Sun May 30, 2010 12:29 pm
Location: USA

Re: WAC File maximum length

Post by Country Joe-PG- » Sat Mar 19, 2016 12:50 am

OK, what is text pad?
I'm just asking for any new map makers we may get. I have honestly never had a problem with my WAC files not playing except when I have a brain fart and forget quotes or commas.
Image
Image

User avatar
huntor
PrimeTech Administrator
PrimeTech Administrator
Posts: 1177
Joined: Mon Sep 27, 2010 12:00 am

Re: WAC File maximum length

Post by huntor » Sat Mar 19, 2016 4:20 pm

Textpad is just like notepad. It is a text editor. It isn't exactly free. But you can always click continue evaluating. I have been doing that for years and it doesn't make you purchase it.

TextPad® 8.0 is a powerful, general purpose editor for plain text files. Easy to use, with all the features a power user requires.

https://www.textpad.com/

Notepad++ is probably more of a program friendly text editor.

https://notepad-plus-plus.org/


I have both of these tools. Textpad is probably the easiest to use. Notepad++ is more for like standards when making an html page. It highlights certain things and makes it easier for you to see if you have your beginning and ending brackets done correctly.
Datacenter Connection 3-22-14
Image

User avatar
Windstalker-PG-
Administrator
Administrator
Posts: 1245
Joined: Sat May 22, 2010 11:04 am

Re: WAC File maximum length

Post by Windstalker-PG- » Sat Mar 19, 2016 8:27 pm

I just copied and pasted the text into a word file, then used the word count function to find out the number of characters.
Image
Image
When you hear the Wind.. You're already dead
Image

User avatar
Country Joe-PG-
Squad Member
Squad Member
Posts: 1925
Joined: Sun May 30, 2010 12:29 pm
Location: USA

Re: WAC File maximum length

Post by Country Joe-PG- » Sun Mar 20, 2016 5:32 pm

Windstalker-PG- wrote:I just copied and pasted the text into a word file, then used the word count function to find out the number of characters.
Thanks Wind.

Thanks to you as well Huntor. I'll check textpad out.
Image
Image

Post Reply