• Vote in November Mapping Competition to select a winner!
  • There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Programmer Need a programmer for sources editing

Olddies

Advanced OT User
Joined
Nov 21, 2009
Messages
1,085
Solutions
10
Reaction score
235
Location
Rep.Dom
Hello otlander’s i am looking for someone who can do some source edition for my server based on tfs 1.2 (nostalrius), i would like to change these 2 things for now.
Lua:
-Strong creatures didnt kill weaker creatures on the way
sources editions as i know.

-Monsters No diagonal pathing
sources edition as i know.
If you want the job pm me or add me in discord
Olddies#8204
 
Last edited:

Nekiro

Legendary OT User
TFS Developer
Joined
Sep 7, 2015
Messages
2,229
Solutions
98
Reaction score
1,154
Last edited:
OP
Olddies

Olddies

Advanced OT User
Joined
Nov 21, 2009
Messages
1,085
Solutions
10
Reaction score
235
Location
Rep.Dom
Last edited:

Ochman

Advanced OT User
Joined
Feb 27, 2016
Messages
327
Solutions
5
Reaction score
224
Hello,

Hit me up on the private message. Might be able to help.
 

Iryont

medivia.online
Joined
Jun 11, 2008
Messages
329
Solutions
4
Reaction score
213
EDIT: Diagonal path doesn't work i mean they still moving on diagonal

This is likely because the Map::getPathMatching function in TFS is a mess. Anyway, please note I do not use TFS and my hint for you will be based on a few minutes of look-up time at that code, so from what I can see @Nekiro solution which you need to implement is almost correct and it probably didn't work because of this line here:


It should be dirCount = fpp.allowDiagonal ? 4 : 8;
 
OP
Olddies

Olddies

Advanced OT User
Joined
Nov 21, 2009
Messages
1,085
Solutions
10
Reaction score
235
Location
Rep.Dom
This is likely because the Map::getPathMatching function in TFS is a mess. Anyway, please note I do not use TFS and my hint for you will be based on a few minutes of look-up time at that code, so from what I can see @Nekiro solution which you need to implement is almost correct and it probably didn't work because of this line here:


It should be dirCount = fpp.allowDiagonal ? 4 : 8;
several things has been tested but noone of them did work neither your solution :/ right now this look like a challenge for me, anyway thank you for your time :)
 

Iryont

medivia.online
Joined
Jun 11, 2008
Messages
329
Solutions
4
Reaction score
213
I find it odd enough. Can you actually record it and show us? This function is used when a creature tries to find a path to reach the player, so it shouldn't allow opening diagonal nodes and the monster should only follow straight path. The only other thing I can think of is fleeing which is calculated within monster class instead and it doesn't use that function.
 
OP
Olddies

Olddies

Advanced OT User
Joined
Nov 21, 2009
Messages
1,085
Solutions
10
Reaction score
235
Location
Rep.Dom
I find it odd enough. Can you actually record it and show us? This function is used when a creature tries to find a path to reach the player, so it shouldn't allow opening diagonal nodes and the monster should only follow straight path. The only other thing I can think of is fleeing which is calculated within monster class instead and it doesn't use that function.
i have tryed to put the solution that @Nekiro give too in creature.cpp
Lua:
Monster* monster = getMonster();
        fpp.allowDiagonal = false;
        if (monster && !monster->getMaster() && (monster->isFleeing() || fpp.maxTargetDist > 1)) {
            Direction dir = DIRECTION_NONE;
but without luck
 

Iryont

medivia.online
Joined
Jun 11, 2008
Messages
329
Solutions
4
Reaction score
213
And you did use both, mine and his patch to check? You cannot use only one of them. My suggestion will only work with his change with fpp.allowDiagonal set to false.
 
Top