Search found 650 matches

by airstruck
Mon May 22, 2017 7:46 pm
Forum: Support and Development
Topic: RPC Library? help-me
Replies: 12
Views: 16072

Re: RPC Library? help-me

Well, I guess you could also run a server on each client, it sounds like that's what RMI is doing. I think it will be more work than a dedicated server / pure client setup with polling, and doesn't really represent a "traditional" RPC setup.
by airstruck
Mon May 22, 2017 4:42 am
Forum: Support and Development
Topic: RPC Library? help-me
Replies: 12
Views: 16072

Re: RPC Library? help-me

I can not put generic ports for clients, the client port has to be the same as the server port to work, so I can not differentiate the clients. Typically, you'd have the server generate a unique session id for the client. The first remote proc you'd call would be something like "startSession,&...
by airstruck
Sun May 21, 2017 8:19 pm
Forum: Support and Development
Topic: RPC Library? help-me
Replies: 12
Views: 16072

Re: RPC Library? help-me

Not directly, but you can write getter and setter RPC methods instead. This way you can make sure a client has permission to change or view data based on whatever rules you want. The only reason I went for "methods" rather than "functions" is so you have access to the relevant so...
by airstruck
Wed May 17, 2017 5:43 pm
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 14282

Re: Help With Player Movement

@MasterLee, when I said "there's nothing wrong with integration" I was referring specifically to pos=pos+vel*dt. Since there's nothing else in the code to indicate that something else happens after the thing "hits the wall" at 32px, we don't know whether it matters if there's som...
by airstruck
Tue May 16, 2017 7:42 pm
Forum: Libraries and Tools
Topic: Love thread wrapper
Replies: 5
Views: 7217

Re: Love thread wrapper

Is newproxy really necessary? Couldn't __gc be set on the thread userdata instead of the table it's in?

If that doesn't work, at least localize setmetatable so the library won't overwrite the global setmetatable.
by airstruck
Tue May 16, 2017 7:37 pm
Forum: General
Topic: [Solved]Help With Player Movement
Replies: 14
Views: 14282

Re: Help With Player Movement

There's nothing wrong with integration. The problem is that x will always overshoot y unless at the final step, vel*dt is exactly y-x, which would be extremely coincidental. There are a few ways to fix it. You could simply stick a math.min in there to prevent overshooting. You could use a fixed time...
by airstruck
Sun May 14, 2017 6:22 pm
Forum: Support and Development
Topic: RPC Library? help-me
Replies: 12
Views: 16072

Re: RPC Library? help-me

I took a crack at it. https://gist.github.com/airstruck/5e0d0336231cfdefd3f6424afe6e75dc Uses binser for serialization. Should be pretty straightforward, see examples. Everything is synchronous. Define your remote procs as methods of the rpc server object (as rpc:method, not rpc.function), and then ...
by airstruck
Thu May 11, 2017 6:15 pm
Forum: General
Topic: Curious about feasibility of lua for bigger projects
Replies: 4
Views: 6748

Re: Curious about feasibility of lua for bigger projects

In a turn-based game like a roguelike, you shouldn't need to worry about performance (of pathfinding, etc.) much at all. Lua's sparse ecosystem could have an impact on bigger projects, though. You'll find less prepackaged solutions for things, and they may not be as actively maintained or have as ma...
by airstruck
Tue May 09, 2017 8:52 pm
Forum: Libraries and Tools
Topic: Error handler that asks user to report crash
Replies: 26
Views: 27131

Re: Error handler that asks user to report crash

Apparently some time in the last few years, major ISPs started blocking outgoing connections on port 25 from residential accounts / dynamic IPs. https://www.xfinity.com/support/internet/email-port-25-no-longer-supported/ This is probably a bit silly since there's nothing inherently insecure about po...
by airstruck
Mon May 08, 2017 9:33 pm
Forum: Support and Development
Topic: Collision response with AABBs
Replies: 9
Views: 12472

Re: Collision response with AABBs

No velocity means things aren't moving, doesn't it? If things aren't moving, how can they collide?

Not clear what kind of response you're looking for here, did you mean to ask a question?