Little bug relating to the pocketwatch
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Little bug relating to the pocketwatch
This may have happened in the original BG, but I can't remember. When using the pocketwatch, noon is 12 AM. So time goes, 11 AM-12 AM-1 PM, which isn't right. At midnight the time reads as 12 AM, which is correct. Just a little cosmetic bug.
Pibroch
Pibroch
-
- Posts: 50
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
Would the game engine have a way of knowing which 12 is AM or PM?
-Vividos Dragon-
Re: Little bug relating to the pocketwatch
This happened in the original too. It's a usecode bug that was fixed in SI.
Re: Little bug relating to the pocketwatch
I dont think anyone should apply am or pm to a 12 o'clock situation, rather refer to them at noon or midnight. Mabie the game does/should/or could say the formal titles.
Since I dont know of anyway to remember noon as a AM or PM , more like neither of the two.
Since I dont know of anyway to remember noon as a AM or PM , more like neither of the two.
Re: Little bug relating to the pocketwatch
The pocketwatch always seems to know.
Pibroch
Pibroch
Re: Little bug relating to the pocketwatch
I had an inkling it did. Thanks for clearing that up.
Pibroch
Pibroch
Re: Little bug relating to the pocketwatch
Nah, it's easier to remember midnight = 12 AM, noon = 12 PM than to have it displayed ingame. Just commit that to memory.
Pibroch
Pibroch
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
or hack usecode.
That's what I've done for si-french. Time is now displayed in normal 24h clock, just like the normal day is. A day is _not_ 2 times 12 hours. It is one time 24 hours. Think about it.
Anyways, si-french (http://si-french.sf.net/) sports that change and it is less confusing. For ppl who want to know, I can give out what changes to make to usecode and possibly making a patch for you can get 24h too.
Thanks to wjp and Colourless for helping me finding what changes to make in usecode to make it possible.
Artaxerxes
That's what I've done for si-french. Time is now displayed in normal 24h clock, just like the normal day is. A day is _not_ 2 times 12 hours. It is one time 24 hours. Think about it.
Anyways, si-french (http://si-french.sf.net/) sports that change and it is less confusing. For ppl who want to know, I can give out what changes to make to usecode and possibly making a patch for you can get 24h too.
Thanks to wjp and Colourless for helping me finding what changes to make in usecode to make it possible.
Artaxerxes
Re: Little bug relating to the pocketwatch
Actually, a day isn't 24 hours either. It's 23 hours, 56 minutes and 4 seconds. And that's only if you're going by the definition of how long it takes the Earth to rotate fully once. If you're going by how much actual "day" there is each time, then that changes radically over the course of the year.
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
Quit being pedantic.
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
It's not very flattering.
Re: Little bug relating to the pocketwatch
My general response has been that if you want to be pedantic, then learn to program. You'll really start to appreciate the vagaricies of 'DWIM'
human languages and conception after you've gotten your 20th compile
error in a row. *grin*
human languages and conception after you've gotten your 20th compile
error in a row. *grin*
Re: Little bug relating to the pocketwatch
if (incorrect statement) then
do_make_smartass_remark
end if
do_make_smartass_remark
end if
Re: Little bug relating to the pocketwatch
if (incorrect statement)
{
do_make_smartass_remark;
}
{
do_make_smartass_remark;
}
Re: Little bug relating to the pocketwatch
if [ "$statement" = incorrect ] ; then
make_smartass_remark;
fi
make_smartass_remark;
fi
Re: Little bug relating to the pocketwatch
[PRE]
Usecode class -1 (FFFF SMARTASS)
Func_80 (Event 1) SMARTASS::use():
0080: 5A init 00
0082: 0B push 0000h
0085: 40 push dword [BP+06h]
0087: 4C push indirect 02h bytes
0089: 77 set info
008A: 78 process exclude
008B: 59 push pid
008C: 0D push string "remark "
0097: 6B str to ptr
0098: 40 push dword [BP+06h]
009A: 0F calli 08h 0049h (process Item::bark(char* str))
009E: 65 free string [SP+04h]
00A0: 6E add sp -08h
00A2: 5E push retval
00A3: 54 implies 01 01
00A6: 12 pop temp
00A7: 53 suspend
00A8: 50 ret
00A9: 7A end
[/PRE]
Darke
(Why wait for an incorrect statment to make a smartass remark? *grin*)
Usecode class -1 (FFFF SMARTASS)
Func_80 (Event 1) SMARTASS::use():
0080: 5A init 00
0082: 0B push 0000h
0085: 40 push dword [BP+06h]
0087: 4C push indirect 02h bytes
0089: 77 set info
008A: 78 process exclude
008B: 59 push pid
008C: 0D push string "remark "
0097: 6B str to ptr
0098: 40 push dword [BP+06h]
009A: 0F calli 08h 0049h (process Item::bark(char* str))
009E: 65 free string [SP+04h]
00A0: 6E add sp -08h
00A2: 5E push retval
00A3: 54 implies 01 01
00A6: 12 pop temp
00A7: 53 suspend
00A8: 50 ret
00A9: 7A end
[/PRE]
Darke
(Why wait for an incorrect statment to make a smartass remark? *grin*)
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
Usecode class -2 (FFFE DARKE)
Func_80 (Event 0) DARKE::look():
0080: 5A init 00
0082: 0B push 0001h
0085: 40 push dword [BP+06h]
0087: 4C push indirect 02h bytes
0089: 77 set info
008A: 78 process exclude
008B: 59 push pid
008C: 0D push dword [BP+06h]
008D: 57 spawn 00 02 FFFF:0080 (SMARTASS::use())
0094: 5E push retval
0095: 54 implies 01 01
0098: 12 pop temp
0099: 53 suspend
009A: 50 ret
009B: 7A end
Func_80 (Event 0) DARKE::look():
0080: 5A init 00
0082: 0B push 0001h
0085: 40 push dword [BP+06h]
0087: 4C push indirect 02h bytes
0089: 77 set info
008A: 78 process exclude
008B: 59 push pid
008C: 0D push dword [BP+06h]
008D: 57 spawn 00 02 FFFF:0080 (SMARTASS::use())
0094: 5E push retval
0095: 54 implies 01 01
0098: 12 pop temp
0099: 53 suspend
009A: 50 ret
009B: 7A end
Re: Little bug relating to the pocketwatch
This kind of joke fits in with this crowd:
Christmas is the same as Halloween, because OCT 31 = DEC 25.
Christmas is the same as Halloween, because OCT 31 = DEC 25.
Re: Little bug relating to the pocketwatch
It's actually not hard to figure out which 12 O'Clock is am and which is PM.
Simple Fact 1: During the day, PM (in general) implies afternoon.
Simple Fact 2: noon is 12:00 during the day.
Simple Fact 3: 12:30 during the day is after 12:00 during the day.
SF 2 and 3 imply 12:30 during the day is afternoon.
SF 1 and above imply 12:30 during the day is 12:30 PM.
Trick (ie, the only thing you might have to memorize): the AM/PM designation does not change within the hour.
Conclusion: noon = 12:00PM
And by process of elimination, midnight = 12:00AM.
This doesn't really qualify as a rigorous proof, but works well enough as an easy rationalization/confirmation. (-:
Simple Fact 1: During the day, PM (in general) implies afternoon.
Simple Fact 2: noon is 12:00 during the day.
Simple Fact 3: 12:30 during the day is after 12:00 during the day.
SF 2 and 3 imply 12:30 during the day is afternoon.
SF 1 and above imply 12:30 during the day is 12:30 PM.
Trick (ie, the only thing you might have to memorize): the AM/PM designation does not change within the hour.
Conclusion: noon = 12:00PM
And by process of elimination, midnight = 12:00AM.
This doesn't really qualify as a rigorous proof, but works well enough as an easy rationalization/confirmation. (-:
-
- Site Admin
- Posts: 731
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
AM = Anti Meridian = Before noon
PM = Post Meridian = After noon
PM = Post Meridian = After noon
-
- Site Admin
- Posts: 1310
- Joined: Thu May 14, 2020 1:34 pm
Re: Little bug relating to the pocketwatch
00h00: midnight
00h01-11h59: morning
12h00: noon
12h01-23h59: afternoon
The process could be refined to:
00h00: midnight
00h01-05h59: dawn
06h00-11h59: morning
12h00: noon
12h01-18h00: afternoon
18h01-23h59: night
we could also rehash to add afternight, evening and dusk but that's totally subjective.
Artaxerxes
00h01-11h59: morning
12h00: noon
12h01-23h59: afternoon
The process could be refined to:
00h00: midnight
00h01-05h59: dawn
06h00-11h59: morning
12h00: noon
12h01-18h00: afternoon
18h01-23h59: night
we could also rehash to add afternight, evening and dusk but that's totally subjective.
Artaxerxes