#nuvie@irc.freenode.net logs for 8 Aug 2015 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[00:31:08] <-- sbx-at-home has left IRC (Ping timeout: 255 seconds)
[01:26:01] <-- Dominus has left IRC (Ping timeout: 246 seconds)
[01:26:30] --> Dominus has joined #nuvie
[02:01:18] --> sbx-at-home has joined #nuvie
[02:08:23] --> Yuv422 has joined #nuvie
[02:20:06] <-- Yuv422 has left IRC (Quit: Yuv422)
[02:44:11] --> Yuv422 has joined #nuvie
[03:07:23] <sbx-at-home> hello again :)
[03:07:31] <Yuv422> hey sbx-at-home
[03:07:45] <sbx-at-home> yeah i wouldnt redo the entire ui, especially if its difficult
[03:07:49] <sbx-at-home> don't have time for that
[03:08:00] <sbx-at-home> but just thinking of the possibilities
[03:09:40] <Yuv422> :)
[03:09:46] <sbx-at-home> wondering if we can define the ui in lua component tables instead of just procedurally adding all the elements
[03:10:22] <sbx-at-home> was reading up on doing object inheritence in lua
[03:12:57] <sbx-at-home> in the meantime i have almost finished the installer improvements
[03:13:06] <sbx-at-home> which i wanted to do first
[03:13:07] <Yuv422> cool
[03:55:16] <sbx-at-home> Yuv422, while you are here, did you build the roofs by hand?
[03:55:29] <sbx-at-home> or did someone else
[03:55:41] <Yuv422> Daniel made the roof tileset
[03:55:56] <Yuv422> you can edit them using the built in level editor
[03:56:31] <Yuv422> I’d like to use the tiled mapeditor to make them in the future
[03:58:20] <sbx-at-home> but actually placing the tiles on the buildings, Daniel did that?
[03:58:43] <Yuv422> no I did it
[03:58:52] <Yuv422> but I haven’t done all the buildings :(
[03:58:55] <sbx-at-home> which editor did you use used?
[03:58:55] <Yuv422> only a few
[03:58:59] <sbx-at-home> that's ok
[03:59:02] <Yuv422> the built in editor in nuvie
[03:59:05] <sbx-at-home> ok
[03:59:11] <sbx-at-home> the few that are there are nice :)
[03:59:19] <Yuv422> but I would like to use Tiled to do the rest
[03:59:22] <Yuv422> http://ultimacodex.com/2015/01/nuvie-export-maps-to-tiled-map-editors-tmx-format/
[03:59:48] <Yuv422> http://www.mapeditor.org/
[04:00:23] <sbx-at-home> sweet, didnt even know about it
[04:01:01] <Yuv422> alt-600
[04:01:05] <sbx-at-home> so you just need an import tileset?
[04:01:09] <Yuv422> will enable the map eidtor in nuvie
[04:01:09] <sbx-at-home> nice
[04:01:21] <Yuv422> yes
[04:01:27] <Yuv422> nuvie will output that for you
[04:02:03] <sbx-at-home> i mean, TMX Import is still a TODO item?
[04:02:15] <Yuv422> no it’s done now
[04:02:33] <sbx-at-home> awesome
[04:02:58] <sbx-at-home> but im getting distracted by screenshots of martian dreams on that website :p
[04:03:02] <sbx-at-home> nice work
[04:04:03] <sbx-at-home> http://ultimacodex.com/wp-content/uploads/2014/07/nuvie-md2.png
[04:04:18] <Yuv422> yeah
[04:04:19] <Yuv422> :)
[04:04:54] <Yuv422> alt-913 will export the current map in tmx file format
[04:04:54] <sbx-at-home> md is not a nostalgic game for me at all but it's making me want to play
[04:05:04] <sbx-at-home> oh
[04:05:06] <Yuv422> it’s a great game
[04:05:37] <sbx-at-home> i like the random cutscene graphics
[04:05:56] <Yuv422> yeah the cutscenes are mostly done in nuvie now
[04:07:18] <sbx-at-home> SE looks good too
[04:07:33] <Yuv422> I haven’t actually played through SE yet
[04:07:38] <Yuv422> I’ll need to do that soon
[04:07:50] <Yuv422> so I don’t get any spoilers
[04:08:22] <Yuv422> I’d like to complete the original first before doing any more work on SE in nuvie
[04:10:04] <sbx-at-home> can't blame you
[04:10:16] <sbx-at-home> i still need to finish it
[04:13:35] <sbx-at-home> well time for bed, cya
[04:13:40] <Yuv422> cya
[04:27:26] <-- sbx-at-home has left IRC (Ping timeout: 265 seconds)
[04:34:07] <-- Kirben has left IRC (Ping timeout: 260 seconds)
[04:35:48] --> Kirben has joined #nuvie
[05:14:59] <-- Yuv422 has left IRC (Quit: Yuv422)
[06:44:46] <-- Lightkey has left IRC (Ping timeout: 244 seconds)
[06:57:31] --> Lightkey has joined #nuvie
[07:12:59] --> Yuv422 has joined #nuvie
[07:31:10] <-- Yuv422 has left IRC (Quit: Yuv422)
[13:56:17] --> sbx-at-home has joined #nuvie
[14:16:20] <-- Kirben has left IRC ()
[18:19:07] --> Malignant_Manor has joined #nuvie
[18:19:59] <Malignant_Manor> sbx-at-home: MapWindow::drawRoofs() has world wrapping issues and has a hack to keep the game from crashing when you get near the edge.
[18:20:46] <Malignant_Manor> I basically had it stop trying to draw tiles south of Trinsic.
[18:21:41] <Malignant_Manor> I think it will still crash at extremely game map sizes that no one will use.
[18:22:57] <Malignant_Manor> zabeus: if(cur_y < 1 || cur_y > 760) // FIXME We need to handle this properly
[18:23:18] <Malignant_Manor> is the hack
[18:42:55] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.91.1 [Firefox 39.0.3/20150806001005])
[19:06:03] <-- sbx-at-home has left IRC (Ping timeout: 246 seconds)
[21:40:12] --> sbx-at-home has joined #nuvie
[21:57:24] <sbx-at-home> hey malignant, thanks for that info. i was thinking of working on roofs (not yet though)
[22:26:45] --> Yuv422 has joined #nuvie
[23:27:05] <sbx-at-home> hi eric
[23:27:38] <sbx-at-home> trying to figure out some strange behavior of nuvie before submitting the new installer code
[23:29:24] <sbx-at-home> it's thinking the games are at \ultima6 even though the config is pointing to a different folder
[23:31:33] <Yuv422> hmm
[23:31:40] <Yuv422> I think that might be the windows default
[23:31:50] <Yuv422> maybe it’s not getting the right config file?
[23:33:04] <sbx-at-home> that's the only thing it could be right? i deleted nuvie.cfg.sample and nuvie.cfg and it still says config file nuvie.cfg, gamedir c:\ultima6
[23:33:35] <sbx-at-home> i guess if no config exists it will try some defaults instead of giving an error?
[23:34:27] <Yuv422> yeah
[23:34:39] <Yuv422> can you see the console output
[23:34:48] <Yuv422> it should tell you which config file it has loaded
[23:35:27] <sbx-at-home> i see, i believe it is not able to open nuvie.cfg in c:\program files\nuvie with read/write access so it generates a default config
[23:35:40] <Yuv422> yeah
[23:35:44] <sbx-at-home> could only see console output briefly but it still said "nuvie.cfg" even without any file there
[23:35:49] <Yuv422> that’s going to be a problem
[23:37:27] <sbx-at-home> interesting, i guess the original installer would show the same behavior even before my changes
[23:37:35] <Yuv422> yes
[23:37:47] <sbx-at-home> it only works automatically if the user happens to have the game at c:\ultima6
[23:38:03] <Yuv422> but I think on windows 7 and lower the config is writeable from that location
[23:38:03] <sbx-at-home> so can i make a pull request anyway then? :)
[23:38:12] <sbx-at-home> i see
[23:38:22] <sbx-at-home> windows 8 weirdness
[23:38:26] <Yuv422> using the shadow file system
[23:39:09] <Yuv422> How are you ment to save files in windows 8?
[23:39:19] <Yuv422> Is there a standard location
[23:39:33] <sbx-at-home> %appdata% usually, but there's a couple of ways we could fix it
[23:39:57] <sbx-at-home> 1. you and malignant were talking about command line option to select config location.
[23:40:17] <sbx-at-home> 2. the config itself could point to a second, writable config (or writable user folder)
[23:40:34] <sbx-at-home> either one would be set by the installer
[23:41:59] <sbx-at-home> in situation 2, ignore settings in .\nuvie.cfg if <config>\nuvie.cfg exists. .\nuvie.cfg would only be pointing to the writable one
[23:42:22] <sbx-at-home> in situation 1 the installer would need to make a shortcut pointing to the folder
[23:42:41] <sbx-at-home> "nuvie.exe --config %appdata%\nuvie\nuvie.cfg"
[23:44:48] <Yuv422> maybe change the way Nuvie scans for the config file to include the %appdata% location
[23:45:05] <sbx-at-home> yes, another option would be to just poing to some %appdata% location by convention
[23:45:17] <sbx-at-home> point*
[23:45:19] <Yuv422> but only on win32 7+
[23:45:22] <Yuv422> right?
[23:45:41] <Yuv422> does it work in vista too?
[23:45:55] <sbx-at-home> well, i didnt test on other windows but it would make sense to aim for consistency within the platform
[23:47:01] <sbx-at-home> %appdata% would work in vista, but not inside nuvie itself. you probably have to call some windows specific method to expand that
[23:47:16] <Yuv422> ah k
[23:47:28] <sbx-at-home> whereas with a command line option it would already be expanded
[23:47:34] <Yuv422> so simply setting the path to %appdata% doesn’t work
[23:49:30] <sbx-at-home> from where?
[23:49:41] --> Malignant_Manor has joined #nuvie
[23:49:56] <Yuv422> in a file open call
[23:50:12] <Malignant_Manor> is the installer writing properly
[23:50:44] <Malignant_Manor> the gamedir cfg option is working in my Windows 7, at least for MD
[23:51:51] --> Kirben has joined #nuvie
[23:51:52] <Malignant_Manor> If updating to use %appdata%\nuvie\nuvie.cfg, what Exult does is good
[23:51:57] <sbx-at-home> Yuv422: yes that's what I would guess, since that doesn't work in nuvie.cfg for pointing to the gamedir when i last tested
[23:52:04] <sbx-at-home> hi malignant
[23:52:31] <Yuv422> looks like you might be able to get APPDATA from the environment vars
[23:52:34] <Malignant_Manor> hi
[23:52:36] <Yuv422> http://stackoverflow.com/questions/23112792/accessing-appdata-with-c
[23:52:39] <Yuv422> hey Malignant_Manor
[23:52:44] <sbx-at-home> gamedir cfg options works for me as long as nuvie.cfg is writeable by nuvie but im still testing if that's the issue
[23:53:04] <Malignant_Manor> Exult has it in its code for how to access the correct user data location
[23:54:09] <sbx-at-home> yeah we can use their code wherever available, that's what i did for the installer changes
[23:54:32] <Malignant_Manor> If it can't be written to, doesn't it create a copy in a user app directory?
[23:55:11] <sbx-at-home> Exult? no idea
[23:55:38] <Malignant_Manor> no, I think I read about Windows doing that
[23:57:00] <sbx-at-home> mine doesn't
[23:57:38] <sbx-at-home> since you are both here can you review my pull request?
[23:58:12] <Malignant_Manor> AppData\Local\VirtualStore http://www.clipboardextender.com/off-topic/vista-program-files-hide-and-seek