Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 02 2019 01:00
    uoitalia commented #466
  • Jan 01 2019 18:58
    ZaneDubya commented #466
  • Jan 01 2019 17:47
    uoitalia closed #466
  • Dec 10 2018 23:09
    nydehi commented #472
  • Dec 10 2018 23:08
    andreakarasho commented #472
  • Sep 24 2018 15:21
    AzRieil opened #473
  • Sep 23 2018 21:02
    AzRieil commented #472
  • Sep 23 2018 15:48
    AzRieil commented #472
  • Sep 23 2018 14:45
    AzRieil commented #472
  • Aug 31 2018 06:59
    PatrikSamuelTauchim commented #472
  • Aug 29 2018 13:18
    AzRieil opened #472
  • Jan 05 2018 09:20
    arthurasrossi commented #471
  • Jan 05 2018 08:47
    msx752 commented #471
  • Jan 05 2018 08:07
    naggie commented #471
  • Jan 04 2018 23:19
    yazeed opened #471
  • Sep 06 2017 00:24
    jorsi commented #376
  • Sep 05 2017 03:01
    jorsi commented #470
  • Sep 05 2017 03:00
    jorsi opened #470
  • Aug 29 2017 01:30
    jorsi opened #469
  • Jul 18 2017 22:58
    msx752 commented #317
Zane Wagner
@ZaneDubya
Optimizations.
Toni Spets
@hifi
+1 for _members
makes auto-completion also easier
Zane Wagner
@ZaneDubya
@hifi merged your portable TileMatrixData reading PR. Do we need to replace all the methods in NativeMethods?
Or - not replace - I'd rather just make portable versions. But same question.
Toni Spets
@hifi
It was the only method used after I replaced all input handling
Zane Wagner
@ZaneDubya
Ah, ok
My changes SHOULD work on your end. I can't see why they wouldn't. MG should not define WINDOWS on the linux / mac platforms.
Toni Spets
@hifi
I don't know what to do with the input handling just yet
ideally it would have a portable implementation and native implementation(s)
Zane Wagner
@ZaneDubya
Yeah, it's a beast. I spent many days trying to figure out how to handle different culture inputs.
I have no idea how nix handles keyboard<->text input.
Toni Spets
@hifi
where native implementations would be on-par with the windows one and portable some weird keyboard mapping thingy
because I would be just fine with the "portable" one I'm not too eager to go that route yet (native on Linux or Mac)
Zane Wagner
@ZaneDubya
I hear ya. Maybe just use the built in xna keyboard routines? I think we've talked previously how xna keyboard input is not optimal for typing text because the rate of input is not granular enough, but it's good enough for everything else.
But then again, it's been so long since I tried to use xna for that purpose. I might have been doing it wrong.
Toni Spets
@hifi
xna input has no notion of keyboard layout
or any text input at all, you either need to emulate it or use the MG add-on for text input events
Zane Wagner
@ZaneDubya
gotcha
Toni Spets
@hifi
the problem with UXNA is all input handling is so tied to win32 way of doing things
it would be much better if it was abstracted away and the input system be pluggable for this kind of thing
there were also quite a lot of code in the event system of uxna I didn't really understand why it was there in the first place
Zane Wagner
@ZaneDubya
Which event system? You mean the KeyboardEvent, etc code?
Toni Spets
@hifi
it seemed overly complex
Zane Wagner
@ZaneDubya
Mindlessly byzantine.
Toni Spets
@hifi
the InputManager class mostly
Zane Wagner
@ZaneDubya
Lol, so, the backstory on that...
Unless it has been tidied up, InputManager would have been some of the first code I wrote in c#!
Back in 2009.
Toni Spets
@hifi
my InputManager is much more streamlined so I wondered if there was some reason for the complexity :p
Zane Wagner
@ZaneDubya
So I wouldn't be surprised if it is... suboptimal.
Toni Spets
@hifi
I don't assume anything in UXNA to be inheretly bad so I always try to reason with the code
maybe I should'nt ;)
Zane Wagner
@ZaneDubya
That's very charitable of you, and I appreciate it. But 85-90% of it was written as a sort of learn-as-I-go project.
Most of the classes in the Ultima.World namespace - like WorldClient, WorldModel, the cursor classes... they all need some tidying up as well.
But they work now. I'm hesitant to refactor anything that doesn't need it now.
I'd be interested in seeing what you've done with InputMgr -- link?
Is it in your repo?
Toni Spets
@hifi
yes
the input code isn't finished at all, text input mostly
but the input manager seemed ok what I wrote to do what I needed it to do
playing diablo 2 atm so a bit busy
Zane Wagner
@ZaneDubya
k
no worries
Toni Spets
@hifi
goddamn 800x600
Zane Wagner
@ZaneDubya
great game! stole an entire summer of my youth ;P
Toni Spets
@hifi
started playing it with my wife
we don't have much common games
though not on bnet, just lan
Toni Spets
@hifi
also disclaimer on my inputmanager: it wasn't finished and there are some kludges still in there IIRC