Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Pictures
Version history
Version history
Version 1.0.0 (20160301): Release
Re: [MOD 0.12.x] Searching flashlight
Posted: Tue Mar 01, 2016 10:18 pm
by Koub
Wow that looks so well thought
Hope I'll have to play one day so that I can give it a try
Re: [MOD 0.12.x] Searching flashlight
Posted: Tue Mar 01, 2016 10:53 pm
by mngrif
This is pretty awesome! Any idea if it breaks multiplayer? It should...
Re: [MOD 0.12.x] Searching flashlight
Posted: Tue Mar 01, 2016 10:58 pm
by Supercheese
Whoah that's pretty neat!
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Mar 02, 2016 10:06 am
by rk84
mngrif wrote:This is pretty awesome! Any idea if it breaks multiplayer? It should...
It should not break in MP. The code doesn't use methods that I know to be unsupported and my 2 client test was successfull.
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Mar 30, 2016 9:30 pm
by dandielo
Hey there I've just got a small bug with this mod, this occurred in a MP session, when my friend got disconnected, I've quickly checked the code and added an additional check if a player is connected.
-- Changed this
if not players[i].vehicle and players[i].selected and players[i].character and not players[i].walking_state.walking then
-- Into this
if players[i].connected and not players[i].vehicle and players[i].selected and players[i].character and not players[i].walking_state.walking then
Re: [MOD 0.12.x] Searching flashlight
Posted: Tue Apr 12, 2016 12:35 pm
by Taehl
I've added this to my game-in-progress. After loading, once it begins to become night (within 30 seconds), I get this error:
__searching-flashlight__/control.lua:16: Invalid direction
Also, it would be nice if your character lerped to the new angle instead of instantly snapping to it - it would look much smoother.
EDIT) I'm playing 0.12.29, in case that matters.
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Apr 13, 2016 9:15 am
by rk84
dandielo wrote:Hey there I've just got a small bug with this mod, this occurred in a MP session, when my friend got disconnected, I've quickly checked the code and added an additional check if a player is connected.
-- Changed this
if not players[i].vehicle and players[i].selected and players[i].character and not players[i].walking_state.walking then
-- Into this
if players[i].connected and not players[i].vehicle and players[i].selected and players[i].character and not players[i].walking_state.walking then
Thanks.
Taehl wrote:I've added this to my game-in-progress. After loading, once it begins to become night (within 30 seconds), I get this error:
__searching-flashlight__/control.lua:16: Invalid direction
Also, it would be nice if your character lerped to the new angle instead of instantly snapping to it - it would look much smoother.
EDIT) I'm playing 0.12.29, in case that matters.
I added better clamping. Hoping it will fix that.
I can't make it smoother currently. Has only 8 directions. This must be due to nature of character entity. Walking "direction" is used over Smooth "orientation" unless in combat.
Re: [MOD 0.12.x] Searching flashlight
Posted: Thu Apr 14, 2016 2:26 am
by Taehl
What about the car and tank? They don't snap to the 8 directions. Watching their headlights sweep through the night is awesome and I want the player to do it too. Maybe there's a way to use the orientation thing instead?
Re: [MOD 0.12.x] Searching flashlight
Posted: Thu Apr 14, 2016 10:20 am
by rk84
Taehl wrote:What about the car and tank? They don't snap to the 8 directions. Watching their headlights sweep through the night is awesome and I want the player to do it too. Maybe there's a way to use the orientation thing instead?
Yes, I think that is possible, but it will add some complexity to this simple mod.
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Sep 07, 2016 11:08 am
by DevilXD
Will this mod get updated ? I'm still using it but something has broke since 0.14 version came out. It was working perfectly in the 0.13 version.
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Sep 07, 2016 1:05 pm
by aubergine18
I've sent a PR which should fix it, but in interim see if this version works:
I changed the dependency version number. also removed version number from title. I assume/hope mod portal uses names as IDs.
I'm bit puzzled why ingame mod browser does not show version number, but info.json has it and mod portal site shows it.
ah must be because I run stable 0.13 and release is now only for 0.14. hmm
Re: [MOD 0.12.x] Searching flashlight
Posted: Wed Nov 09, 2016 1:28 am
by GotLag
FYI the mod doesn't work when unzipped, unless you rename the folder to "searching-flashlight_1.1.1"