Search found 223 matches

by unelsson
22 Mar 2018, 15:48
Forum: General Development
Topic: Feature #2229: Improve pathfinding AI
Replies: 48
Views: 35681

Re: Feature #2229: Improve pathfinding AI

I've experimented with commenting out various parts of pathfinding code, and tried to understand how pathfinding works. If I understand this correctly, A* pathfinding is used to find path from pathnodes, but after that, it's simply casting rays to see whether the actor sees the target or not. Some Z...
by unelsson
22 Mar 2018, 14:54
Forum: General Development
Topic: Feature #2229: Improve pathfinding AI
Replies: 48
Views: 35681

Re: Feature #2229: Improve pathfinding AI

Is this the part of code where AI starts to smash itself against obstacles (e.g. in a combat)? If the distance is small enough, pathfinding is just straight to target.
https://github.com/OpenMW/openmw/blob/c ... #L131-L136
by unelsson
22 Mar 2018, 13:25
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

The idea you propose is indeed what should be done, but I haven't been able to implement that yet. Your proposed changes work, except that when saving player journal, the for-loop going over Players[pid].data.journal finds no entries at all, and therefore doesn't save the player's personal journal. ...
by unelsson
22 Mar 2018, 11:11
Forum: Join the team
Topic: Application: nelsson
Replies: 2
Views: 3672

Re: Application: nelsson

Yes, I've read it and I now finally forked the repository. I've read the policies and standards and substantial parts of the developer reference. Small local experiments on the code are running fine.
by unelsson
21 Mar 2018, 22:32
Forum: Join the team
Topic: Application: nelsson
Replies: 2
Views: 3672

Application: nelsson

My new hobby seems to be going through code of openMW and tes3mp, reading bug reports, thinking how to solve them etc. I've already learned a lot, and solved a minor personal tes3mp-related problem by coding this https://forum.openmw.org/viewtopic.php?f=45&t=5035#p53178 . I'd like to go deeper, ...
by unelsson
21 Mar 2018, 12:34
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

Partial journal sharing (main quest only) is still flawed, but I somehow like the middle ground between sharing all, and not sharing anything. I like this setting on a small private server, where you play with your friends, to minimize the chances of intentional quest breaking. In open servers there...
by unelsson
20 Mar 2018, 13:47
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

Below is my latest partial journal sharing code - replacement for function StateHelper:LoadJournal in file stateHelper.lua. Added a fix for corprus cure quest, essentially NOT sharing the final phases of corpruscure-quest for players who are infected with corprus. function StateHelper:LoadJournal(pi...
by unelsson
18 Mar 2018, 18:19
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

Now, instead of just one quest, it's possible to change it like this to only share the main quest. I did a small test on this and it seems to work. I haven't played the whole main quest co-opped though... "cx" (backpath) is intentionally left out from this sharing. stateHelper.lua, row 109...
by unelsson
18 Mar 2018, 17:39
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

This code works. if journalItem.quest ~= "a1_2_antabolisinformant" then --DO NOT SHARE a1_2_antabolisinformant QUEST if journalItem.type == actionTypes.journal.ENTRY then if journalItem.actorRefId == nil then journalItem.actorRefId = "player" end tes3mp.AddJournalEntry(pid, journ...
by unelsson
18 Mar 2018, 16:56
Forum: TES3MP
Topic: Partial journal sharing?
Replies: 11
Views: 18470

Re: Partial journal sharing?

indeed, commenting out these lines from stateHelper.lua turns off journal sharing 115: tes3mp.AddJournalEntry(pid, journalItem.quest, journalItem.index, journalItem.actorRefId) 117: tes3mp.AddJournalIndex(pid, journalItem.quest, journalItem.index) Question now is how to point to certain quests? Lets...