Page 1 of 1

[MOD 0.11.X] TimeButtons

Posted: Sat Nov 01, 2014 6:35 pm
by jamuspsi
It didn't look to me like the old author was still active, so I fixed a couple things in the TimeButtons mod for 0.11, with a minor regression.

This version has the compatibility fix for Advanced Equipment removed.

That's basically all I did, other than wrapping the cursor state call in a try/pcall. I'm willing to maintain this, but maybe someone with more modding/lua experience can help me out with a couple things.

1. Why does calling game.player.cursorpos in a tick handler fail right when loading a game, saying "The player does not have a game view."? I caught the error and bail on the handler when loading, but this doesn't feel like the best way.
2. Why does the Advanced Equipment fix crash factorio on init? No error, just a stopped working dialog. I honestly can't figure out what it's doing wrong, but maybe it's related- like you can't modify the gui for a few ticks after starting/loading a game? Is this newish? How have other people dealt with this?

Anyway, attachment here. I *think* that it'll work in multiplayer now, but playing around with game speed in multiplayer, you can only get up to about 2x before the game actually SLOWS rather than speeding up.

Re: [MOD 0.11.X] TimeButtons

Posted: Sat Nov 01, 2014 7:44 pm
by Rseding91
I think the issues you're having aren't going to be fixable. The game and the graphics are split - the game can run without the graphics and the graphics can run different from the game. If I had to guess, the game loads before the graphics are fully running and the tick tries to get the cursor position when the render isn't fully ready.


Also, game.player.cursorposition will break MP and replays as well as game.player. game.player needs to be replaced with game.players[playerindex] and game.players[playerindex].cursorposition will just straight up break in MP.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 3:48 pm
by darius456
Can you explain to me why you stole my mod?

Please delete it from this forum, and others too if you published it somewhere wlse.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 6:52 pm
by n9103
Bit harsh there, darius, since you were MIA for almost 3 months when he made the thread. (and longer than that since you posted in your own mod's thread)
But other than the lack of tact, sounds like a reasonable request, since the author has voiced his objections.
For perspective, I've been using your mod since I found it, so I'm not siding against you here.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 7:45 pm
by Damrus
n9103 wrote:Bit harsh there, darius, since you were MIA for almost 3 months when he made the thread. (and longer than that since you posted in your own mod's thread)
But other than the lack of tact, sounds like a reasonable request, since the author has voiced his objections.
For perspective, I've been using your mod since I found it, so I'm not siding against you here.
well said.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 9:44 pm
by darius456
I don't have to explain my private problem with my wife, pregnant and new born child, except factorio I have private live. One simple question and everything would be OK. But someone stole my work. I want justice.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 11:12 pm
by The Lone Wolfling
Justice? For what?

Someone updated a mod because the original developer (i.e. you) was MIA. Why has that harmed you in any way?

Saying "I have returned and updated the mod, this unofficial update's purpose was fulfilled, now please take it down" would be fine. But saying that it's "stolen" (PSA: stealing requires a loss - if there is such a loss please let us know) and saying that you need "justice" comes off as a little heavy-handed, to put it mildly. Regardless of if it is something you are allowed to do (I'm pretty sure it is, but, again, regardless), it doesn't exactly make people like you or respect your position.

Re: [MOD 0.11.X] TimeButtons

Posted: Sun Dec 07, 2014 11:45 pm
by Boogieman14
The Lone Wolfling wrote: Regardless of if it is something you are allowed to do (I'm pretty sure it is, but, again, regardless),
Actually, it isn't. Since no copyright statements have been made and the original was released pre-0.11 (when devs decided all mods by default would fall under CC-BY-NC, unless otherwise specified), it would have to be assumed 'all rights reserved' so strictly speaking, not allowed to re-release it. That said, I fully agree with the rest of your statement. The wording should've been chosen a lot more careful.

Re: [MOD 0.11.X] TimeButtons

Posted: Wed Dec 10, 2014 3:30 am
by The Lone Wolfling
Whoops, that was ambiguous. Sorry. You're in violent agreement with me. By "you", I was referring to the mod author. As such, I was saying "Regardless of if you are allowed to demand that this be taken down". In other words, taking precisely the same stance as you.