The AVChat forums moved to discuss.avchat.net

Jump to content


Photo

avchat3.properties syntax and rules


  • Please log in to reply
1 reply to this topic

#1 steward

steward

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 21 January 2016 - 10:59 PM

Installing a new version of everything today: java, red5 and avchat.  Nuke n pave.

 

Problems getting started were resolved by looking in the logs and noticing lines that raise java runtime string errors.

 

That is sweet, nice to be able to find problems with logs.

 

But I cannot say why the lines are no good...

# ----------------------------------------------------------------------
# When deleteRoomsWhenTheyBecomeEmpty is set to true this array can be used to
# prevent some rooms (like lobbies or main rooms) from being removed.
# Fill this array with the ids of the rooms you do not want deleted like this:
# doNotDeleteTheseRoomsWhenTheyBecomeEmpty=r1,r2;
# The room id's will show up in the admin interface of AVChat 3
# (admin.swf), in the rooms list, in the leftmost column.

## looks like some kind of string error?
## Note example above has semicolon but no other lines do
## doNotDeleteTheseRoomsWhenTheyBecomeEmpty=[Ljava.lang.String;@44b47b4c
##

##doNotDeleteTheseRoomsWhenTheyBecomeEmpty=r0,r1

I do not know why this syntax was rejected.

Notice the example ends in a semi-colon, but no other line in this files does.

 

I configured this before running for the first time (the rooms would not exist), could that be it?

##
## some kind of string error?
## 2016-01-21 13:40:06,207 [Launcher:/avchat30] INFO avchat3.Application - loadSettings() adminsAllowedFromTheseIps=[Ljava.lang.String;@4b5d464a
##
##adminsAllowedFromTheseIps=xx.yyy.241.9,xx.yyy.241.11,xx.yyy.241.17

Here I replaces some digits with xx and yyy to protect the guilty.

 

I do not know why this syntax was rejected.



#2 Octavian

Octavian

    Founder and CEO

  • Administrators
  • 1,911 posts
  • LocationBucharest, Romania

Posted 03 February 2016 - 02:10 PM

avchat3.properties is a Java properites file https://en.wikipedia...iki/.properties

 

Comment lines in .properties files are denoted by the number sign (#) or the exclamation mark (!) as the first non blank character, in which all remaining text on that line is ignored. The backwards slash is used to escape a character.

 

If you want your properties to not be ignored by AVChat make sure they lines they're on do not start with a # or a ! . For example:

doNotDeleteTheseRoomsWhenTheyBecomeEmpty=r0,r1

is correct while:

##doNotDeleteTheseRoomsWhenTheyBecomeEmpty=r0,r1

is considered a comment






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users