y_ini line limit?
#1

Is there a limit as to how big our files can be? Trying to figure out whether it's a scripting error, or whats going on because nothing new is saving.

Quote:

[data]
Passcode = 43057480
Access = 5
Skin = 240
PremiumUser = 0
Interior = 0
VirtualWorld = 0
Money = 1212885
Position_X = 1545.039672
Position_Y = -1618.260253
Position_Z = 15.924467
Position_A = 0.000000
CellPhoneNumber = 413440395
CellPhoneBattery = 5000
BadgeNumber = 1
CBRadio = 1
LottoTicket = 311
Spraycan = 2
WeedSeed = 0
Tazer = 1
Handcuffs = 1
PoliceCap = 1
Beret = 1
LightningHat = 1
BowlerHat = 1
TimePlayedMins = 57
TimePlayedHours = 34
JobID = 2
LumberjackWage = 138
QuarryworkerWage = 189
IntroSong = http://roleplay.vicegaming.net/RPSou...d-Stricken.mp3
FactionID = 2
FactionRank = 10
Weapon_0 = 0
Ammo_0 = 0
Weapon_1 = 0
Ammo_1 = 0
Weapon_2 = 0
Ammo_2 = 0
Weapon_3 = 0
Ammo_3 = 0
Weapon_4 = 0
Ammo_4 = 0
Weapon_5 = 0
Ammo_5 = 0
Weapon_6 = 0
Ammo_6 = 0
Weapon_7 = 0
Ammo_7 = 0
Weapon_8 = 0
Ammo_8 = 0
Weapon_9 = 0
Ammo_9 = 0
Weapon_10 = 0
Ammo_10 = 0
Weapon_11 = 0
Ammo_11 = 0
Object_0_Model = 0
Object_0_Bone = 2
Object_0_X = 0.197999
Object_0_Y = 0.000000
Object_0_Z = 0.000000
Object_0_RX = 99.300010
Object_0_RY = 95.399971
Object_0_RZ = 5.099997
Object_0_SX = 1.000000
Object_0_SY = 1.000000
Object_0_SZ = 1.000000
Object_1_Model = 0
Object_1_Bone = 2
Object_1_X = 0.086998
Object_1_Y = 0.032999
Object_1_Z = 0.001000
Object_1_RX = 7.700004
Object_1_RY = 93.200111
Object_1_RZ = 82.100028
Object_1_SX = 0.995000
Object_1_SY = 1.138000
Object_1_SZ = 1.000000
Object_2_Model = 0
Object_2_Bone = 0
Object_2_X = 0.000000
Object_2_Y = 0.000000
Object_2_Z = 0.000000
Object_2_RX = 0.000000
Object_2_RY = 0.000000
Object_2_RZ = 0.000000
Object_2_SX = 0.000000
Object_2_SY = 0.000000
Object_2_SZ = 0.000000
Object_3_Model = 0
Object_3_Bone = 0
Object_3_X = 0.000000
Object_3_Y = 0.000000
Object_3_Z = 0.000000
Object_3_RX = 0.000000
Object_3_RY = 0.000000
Object_3_RZ = 0.000000
Object_3_SX = 0.000000
Object_3_SY = 0.000000
Object_3_SZ = 0.000000
Object_4_Model = 0
Object_4_Bone = 0
Object_4_X = 0.000000
Object_4_Y = 0.000000
Object_4_Z = 0.000000
Object_4_RX = 0.000000
Object_4_RY = 0.000000
Object_4_RZ = 0.000000
Object_4_SX = 0.000000
Object_4_SY = 0.000000
Object_4_SZ = 0.000000
Object_5_Model = 0
Object_5_Bone = 0
Object_5_X = 0.000000
Object_5_Y = 0.000000
Object_5_Z = 0.000000
Object_5_RX = 0.000000
Object_5_RY = 0.000000
Object_5_RZ = 0.000000
Object_5_SX = 0.000000
Object_5_SY = 0.000000
Object_5_SZ = 0.000000
Object_6_Model = 0
Object_6_Bone = 0
Object_6_X = 0.000000
Object_6_Y = 0.000000
Object_6_Z = 0.000000
Object_6_RX = 0.000000
Object_6_RY = 0.000000
Object_6_RZ = 0.000000
Object_6_SX = 0.000000
Object_6_SY = 0.000000
Object_6_SZ = 0.000000
Object_7_Model = 0
Object_7_Bone = 0
Object_7_X = 0.000000
Object_7_Y = 0.000000
Object_7_Z = 0.000000
Object_7_RX = 0.000000
Object_7_RY = 0.000000
Object_7_RZ = 0.000000
Object_7_SX = 0.000000
Object_7_SY = 0.000000
Object_7_SZ = 0.000000
Object_8_Model = 0
Object_8_Bone = 0
Object_8_X = 0.000000
Object_8_Y = 0.000000
Object_8_Z = 0.000000
Object_8_RX = 0.000000
Object_8_RY = 0.000000
Object_8_RZ = 0.000000
Object_8_SX = 0.000000
Object_8_SY = 0.000000
Object_8_SZ = 0.000000
Object_9_Model = 0
Object_9_Bone = 0
Object_9_X = 0.000000
Object_9_Y = 0.000000
Object_9_Z = 0.000000
Object_9_RX = 0.000000
Object_9_RY = 0.000000
Object_9_RZ = 0.000000
Object_9_SX = 0.000000
Object_9_SY = 0.000000
Object_9_SZ = 0.000000
WeaponLicense = 1
WantedLevel = 2
JailTime = -1
Crime_1 = [10/12/2012] @ 02:42 P.M: testing
Crime_2 = None
Crime_3 = None
Health = 100.000000
Armour = 0.000000

Reply
#2

I think y_ini's line is unlimited.
Not sure, but maybe it's because of your saving.
Maybe you saving it wrong, Not sure.
Reply
#3

Quote:
Originally Posted by Romel
Посмотреть сообщение
I think y_ini's line is unlimited.
Not sure, but maybe it's because of your saving.
Maybe you saving it wrong, Not sure.
Can't really see where there would be a line limit for a text file essentially, so yeah, you're probably right. Thanks anyways.
Reply
#4

There doesn't seem to be a limit on the amount of lines in a file, there are some limits on other things in Y_ini:
Код:
Definitions:
	MAX_INI_TAG - Maximum length of an INI tagname.
	MAX_INI_ENTRY_NAME - Maximum length of an INI entry name.
	MAX_INI_ENTRY_TEXT - Maximum length of an INI's entries' value.
	MAX_INI_LINE - Maximum length of a line in a file.
	INI_NEW_LINE - String for new lines.
	INI_MAX_WRITES - Maximum concurrent files open for writing.
	MAX_INI_TAGS - Number of tags the buffer can hold data for at once.

#define MAX_INI_LINE                    (MAX_INI_ENTRY_NAME + MAX_INI_ENTRY_TEXT + 32)

#define INI_NO_FILE                     (INI:-1)

#if !defined INI_NEW_LINE
	#define INI_NEW_LINE                "\r\n"
#endif

#if !defined MAX_INI_TAG
	#define MAX_INI_TAG                 (32)
#endif

#if !defined MAX_INI_ENTRY_NAME
	#define MAX_INI_ENTRY_NAME          (32)
#endif

#if !defined MAX_INI_ENTRY_TEXT
	#define MAX_INI_ENTRY_TEXT          YSI_MAX_STRING
#endif

#if !defined INI_MAX_WRITES
	// I doubt many people will use the multiple ini function.
	#define INI_MAX_WRITES              (2)
#endif

#if !defined INI_BUFFER_SIZE
	#define INI_BUFFER_SIZE             (64)
#endif

#if !defined MAX_INI_TAGS
	#define MAX_INI_TAGS 3
Copied straight out of y_ini.inc. If you want to change some of the values, you can define them before you include y_ini, this will overwrite the default defines. (You don't need to change them in the file itself)
Reply
#5

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)