Okay.I'll try it.
Of course.They're have an error at the modmergerized mods.Thank you!
("mp_village_plains_1", sf_generate, "none", "none", (0,0),(100,100),-100,"0x0000000030068500800258960000749200006460000070a4",
[],[],"outer_terrain_plain"),
("mp_village_plains_2", sf_generate, "none", "none", (0,0),(100,100),-100,"0x0000000030068500800258960000749200006460000070a4",
[],[],"outer_terrain_plain"),
("mp_village_desert_1", sf_generate, "none", "none", (0,0),(100,100),-100,"0x0000000030068500800258960000749200006460000070a4",
[],[],"outer_terrain_desert"),
("mp_village_desert_2", sf_generate, "none", "none", (0,0),(100,100),-100,"0x0000000030068500800258960000749200006460000070a4",
[],[],"outer_terrain_desert"),
("mp_village_plains_1", "mp_village_plains_1"),
("mp_village_plains_2", "mp_village_plains_2"),
("mp_village_desert_1", "mp_village_desert_1"),
("mp_village_desert_2", "mp_village_desert_2"),
for x in range(mp_village_plains_1, mp_village_desert_2 + 1):
print "(\"x\", \"x\"),"
(str(x), str(x)) for x in range(mp_village_plains_1, mp_village_desert_2 + 1):
for x in range(scn_mp_camp, scn_mp_scenes_end):
strings.append((str(x), str(x)))
("555", "555")
("mp_camp", "mp_camp")
for i_scene in xrange(len(scenes)):
ofile.write("scn_%s = %d\n"%(convert_to_identifier(scenes[i_scene][0]),i_scene))
for i_scene in xrange(len(scenes)):
strings.append("scn_%s\n"%(convert_to_identifier(scenes[i_scene][0])
for x in range(scn_mp_camp, scn_mp_scenes_end):
strings.append((str(scenes[ x ][0]), str(scenes[ x ][0])))
TBH that's what you had in your example, and I apparently couldn't figure what you really wanted out.Arch3r said:The function works fine, but it creates the following string (String id: 555, String definition: 555):
for x in range(scn_mp_camp, scn_mp_scenes_end):
strings.append((str(scenes[ x ][0]), str(scenes[ x ][0])))
It's just a character encoding of some sort that some files seem to need. Can't really tell you what it is about though. Windows-1254, I reckon. Cyrillic used to use Windows-1251, so maybe 1254 contains some special formatting symbols or something.Arch3r said:... under the # -*- coding: cp1254 -*- whatever that may be.
There is an arbitrary item weight maximum of 63.75 (one 0.25 step less than 2^6) imposed by the implementation of the Python module system, but in the item_kinds1.txt file of the module, the weight is unpacked into an individual number that probably has a much higher limit (imposed by the engine code structure). So, you could either remember to change the weight number in item_kinds1.txt after each time you build your module, or you could try change the format used by the Python code when compiling the module system, similar to how it was done for the PW module, commit linked here.Nuchiha said:Is there a max weight on items? I set a "wine barrel" to 136-kilograms but ingame it appears as 8.0
Lumos said:Also, for the protocol, you don't really need the spaces in front of and after the "x" in the square brackets.
Vornne said:There is an arbitrary item weight maximum of 63.75 (one 0.25 step less than 2^6) imposed by the implementation of the Python module system, but in the item_kinds1.txt file of the module, the weight is unpacked into an individual number that probably has a much higher limit (imposed by the engine code structure). So, you could either remember to change the weight number in item_kinds1.txt after each time you build your module, or you could try change the format used by the Python code when compiling the module system, similar to how it was done for the PW module, commit linked here.Nuchiha said:Is there a max weight on items? I set a "wine barrel" to 136-kilograms but ingame it appears as 8.0
The weight of the wine barrel is 8.0 because the higher bits of the binary representation were discarded (truncated).
Yes, go ahead and use it: the entire PW module system has been released to the public for use under a few conditions (basically: give credit, don't impersonate PW with the mod name), but for such a simple little tweak don't worry about the credit. In case you are wondering, the new weight maximum using the tweak should be 16383.75, by my calculation.Nuchiha said:Can I have permission to use your code? Even if it's a small tweak, I don't want to steal or copy someone's work w/o at getting permission from them. Which python file is the code in? There's some 118 files and I'd hate to sift through them all.
Vornne said:Yes, go ahead and use it: the entire PW module system has been released to the public for use under a few conditions (basically: give credit, don't impersonate PW with the mod name), but for such a simple little tweak don't worry about the credit. In case you are wondering, the new weight maximum using the tweak should be 16383.75, by my calculation.Nuchiha said:Can I have permission to use your code? Even if it's a small tweak, I don't want to steal or copy someone's work w/o at getting permission from them. Which python file is the code in? There's some 118 files and I'd hate to sift through them all.
The file the changes apply to is listed on that page - header_items.py. Since the other changes from Native in that file are minimal, you might get away just downloading that file (click the "view" button) to replace the Native header_items.py; otherwise, remove the red lines and add the adjacent green lines to replace them, without the "+" and line numbers at the start of each.
[x]... Didn't know that. Holy ****.The_dragon said:<wisdom>
Just be certain, like every other time you're tinkering with the ModSys, that the bits you're overwriting are not used by anything else, or you might get very strange results.Nuchiha said:I'll be seeing if the problem is similar to the weight, if so, I can "reverse-engineer" the solution Vornne gave me and apply it.