Turns Equal One Week???

Formulapower

Warlord
Joined
Nov 5, 2007
Messages
148
I am trying to set each turn to equal one week of time passed for a mod I am doing, but i have tried several thing but can't get it to work. Has anyone been able to mod this? if so how?

Thanks
 
Would help if you gave the specifics of what you've tried that doesn't work, so we can either identify a problem in what you've done or know what not to try ourselves in trying to find a solution.
 
AFAIK the game only allows month increment as the minimum value.

I've not found a clean way to change that, but I've copied TopPanel.lua (with VFS set to true) to my Stalingrad mod and edited it so that it shows a custom date instead of the vanilla gameturn to date conversion :

Spoiler :
image6b.jpg


If you go that way, you'll have to edit NewTurn.lua too.
 
In CIV5Calenders.xml

There is an entry called "CALENDAR_WEEKS" (SEE BELOW)...and also in the GlbalDefines.xml it defines a month as 4 weeks....so it seems like the game understand the concept of a week and I thought there would be an easy way to impliment this

<Calendars>
<Row>
<ID>0</ID>
<Type>CALENDAR_DEFAULT</Type>
<Description>TXT_KEY_CALENDAR_DEFAULT</Description>
</Row>
<Row>
<ID>1</ID>
<Type>CALENDAR_BI_YEARLY</Type>
<Description>TXT_KEY_CALENDAR_BI_YEARLY</Description>
</Row>
<Row>
<ID>2</ID>
<Type>CALENDAR_YEARS</Type>
<Description>TXT_KEY_CALENDAR_YEARS</Description>
</Row>
<Row>
<ID>3</ID>
<Type>CALENDAR_TURNS</Type>
<Description>TXT_KEY_CALENDAR_TURNS</Description>
</Row>
<Row>
<ID>4</ID>
<Type>CALENDAR_SEASONS</Type>
<Description>TXT_KEY_CALENDAR_SEASONS</Description>
</Row>
<Row>
<ID>5</ID>
<Type>CALENDAR_MONTHS</Type>
<Description>TXT_KEY_CALENDAR_MONTHS</Description>
</Row>
<Row>
<ID>6</ID>
<Type>CALENDAR_WEEKS</Type>
<Description>TXT_KEY_CALENDAR_WEEKS</Description>
</Row>
</Calendars>
 
I also had another idea...what if I redefine a month as 52/year...instead of the Current 12/year...then my months should play just like weeks...right?
 
I also had another idea...what if I redefine a month as 52/year...instead of the Current 12/year...then my months should play just like weeks...right?

At a guess, this will "crash" on turn 13 when it tries to get a name for the 13th month of the year, unless you add another 40 names to the Months table
 
Yeah that's what i was planing on doing....in fact I was going to changed the names to:

January Week 1
January Week 2
" " " " "
" " " " "
December Week 4

and do this for all 52 weeks
 
Okay I was able to get this to work...only issue is you HAVE to start on the first week of the year. No custom "middle of the year starting dates) Good thing I am starting mine in the first week of 1942. Thanks for the help everyone
 
Okay I was able to get this to work...only issue is you HAVE to start on the first week of the year. No custom "middle of the year starting dates) Good thing I am starting mine in the first week of 1942. Thanks for the help everyone

If you post the details of your solution, others will be able to find it via searching ;)
 
Here is what I did...Please note that this code will give you turns that equal 1 week. The only problems I know of with doing this are:

---You have to start the game one week one of whatever year you're starting at

---When in game it will just display the date not the current week within that date so you may not be aware of how far into the year you are

Neither of these are a big deal and can probably be worked out with more modding but with what i am looking to do this will work perfectly.

Spoiler :
<GameData>
<GameSpeed_Turns>
<Update>
<Set MonthIncrement="1"/>
<Where GameSpeedType="GAMESPEED_EPIC" />
</Update>
<Update>
<Set MonthIncrement="1"/>
<Where GameSpeedType="GAMESPEED_STANDARD" />
</Update>
<Update>
<Set MonthIncrement="1"/>
<Where GameSpeedType="GAMESPEED_QUICK" />
</Update>
<Update>
<Set MonthIncrement="1"/>
<Where GameSpeedType="GAMESPEED_MARATHON" />
</Update>
</GameSpeed_Turns>
<Months>
<Row>
<ID>12</ID>
<Type>WEEK_13</Type>
<Description>TXT_KEY_WEEK13</Description>
</Row>
<Row>
<ID>13</ID>
<Type>WEEK_14</Type>
<Description>TXT_KEY_WEEK14</Description>
</Row>
<Row>
<ID>14</ID>
<Type>WEEK_15</Type>
<Description>TXT_KEY_WEEK15</Description>
</Row>
<Row>
<ID>15</ID>
<Type>WEEK_16</Type>
<Description>TXT_KEY_WEEK16</Description>
</Row>
<Row>
<ID>16</ID>
<Type>WEEK_17</Type>
<Description>TXT_KEY_WEEK17</Description>
</Row>
<Row>
<ID>17</ID>
<Type>WEEK_18</Type>
<Description>TXT_KEY_WEEK18</Description>
</Row>
<Row>
<ID>18</ID>
<Type>WEEK_19</Type>
<Description>TXT_KEY_WEEK19</Description>
</Row>
<Row>
<ID>19</ID>
<Type>WEEK_20</Type>
<Description>TXT_KEY_WEEK20</Description>
</Row>
<Row>
<ID>20</ID>
<Type>WEEK_21</Type>
<Description>TXT_KEY_WEEK21</Description>
</Row>
<Row>
<ID>21</ID>
<Type>WEEK_22</Type>
<Description>TXT_KEY_WEEK22</Description>
</Row>
<Row>
<ID>22</ID>
<Type>WEEK_23</Type>
<Description>TXT_KEY_WEEK23</Description>
</Row>
<Row>
<ID>23</ID>
<Type>WEEK_24</Type>
<Description>TXT_KEY_WEEK24</Description>
</Row>
<Row>
<ID>24</ID>
<Type>WEEK_25</Type>
<Description>TXT_KEY_WEEK25</Description>
</Row>
<Row>
<ID>25</ID>
<Type>WEEK_26</Type>
<Description>TXT_KEY_WEEK26</Description>
</Row>
<Row>
<ID>26</ID>
<Type>WEEK_27</Type>
<Description>TXT_KEY_WEEK27</Description>
</Row>
<Row>
<ID>27</ID>
<Type>WEEK_28</Type>
<Description>TXT_KEY_WEEK28</Description>
</Row>
<Row>
<ID>28</ID>
<Type>WEEK_29</Type>
<Description>TXT_KEY_WEEK29</Description>
</Row>
<Row>
<ID>29</ID>
<Type>WEEK_30</Type>
<Description>TXT_KEY_WEEK30</Description>
</Row>
<Row>
<ID>30</ID>
<Type>WEEK_31</Type>
<Description>TXT_KEY_WEEK31</Description>
</Row>
<Row>
<ID>31</ID>
<Type>WEEK_32</Type>
<Description>TXT_KEY_WEEK32</Description>
</Row>
<Row>
<ID>32</ID>
<Type>WEEK_33</Type>
<Description>TXT_KEY_WEEK33</Description>
</Row>
<Row>
<ID>33</ID>
<Type>WEEK_34</Type>
<Description>TXT_KEY_WEEK34</Description>
</Row>
<Row>
<ID>34</ID>
<Type>WEEK_35</Type>
<Description>TXT_KEY_WEEK35</Description>
</Row>
<Row>
<ID>35</ID>
<Type>WEEK_36</Type>
<Description>TXT_KEY_WEEK36</Description>
</Row>
<Row>
<ID>36</ID>
<Type>WEEK_37</Type>
<Description>TXT_KEY_WEEK37</Description>
</Row>
<Row>
<ID>37</ID>
<Type>WEEK_38</Type>
<Description>TXT_KEY_WEEK38</Description>
</Row>
<Row>
<ID>38</ID>
<Type>WEEK_39</Type>
<Description>TXT_KEY_WEEK39</Description>
</Row>
<Row>
<ID>39</ID>
<Type>WEEK_40</Type>
<Description>TXT_KEY_WEEK40</Description>
</Row>
<Row>
<ID>40</ID>
<Type>WEEK_41</Type>
<Description>TXT_KEY_WEEK41</Description>
</Row>
<Row>
<ID>41</ID>
<Type>WEEK_42</Type>
<Description>TXT_KEY_WEEK42</Description>
</Row>
<Row>
<ID>42</ID>
<Type>WEEK_43</Type>
<Description>TXT_KEY_WEEK43</Description>
</Row>
<Row>
<ID>43</ID>
<Type>WEEK_44</Type>
<Description>TXT_KEY_WEEK44</Description>
</Row>
<Row>
<ID>44</ID>
<Type>WEEK_45</Type>
<Description>TXT_KEY_WEEK45</Description>
</Row>
<Row>
<ID>45</ID>
<Type>WEEK_46</Type>
<Description>TXT_KEY_WEEK46</Description>
</Row>
<Row>
<ID>46</ID>
<Type>WEEK_47</Type>
<Description>TXT_KEY_WEEK47</Description>
</Row>
<Row>
<ID>47</ID>
<Type>WEEK_48</Type>
<Description>TXT_KEY_WEEK48</Description>
</Row>
<Row>
<ID>48</ID>
<Type>WEEK_49</Type>
<Description>TXT_KEY_WEEK49</Description>
</Row>
<Row>
<ID>49</ID>
<Type>WEEK_50</Type>
<Description>TXT_KEY_WEEK50</Description>
</Row>
<Row>
<ID>50</ID>
<Type>WEEK_51</Type>
<Description>TXT_KEY_WEEK51</Description>
</Row>
<Row>
<ID>51</ID>
<Type>WEEK_52</Type>
<Description>TXT_KEY_WEEK52</Description>
</Row>
</Months>
</GameData>
 
Back
Top Bottom