Reinforcements arrived.

Discuss coding questions, pull requests, and implementation details.
User avatar
Ferital
Posts: 282
Joined: Thu Apr 05, 2018 8:01 am

Re: Reinforcements arrived.

Post by Ferital »

Good idea :) Then I'll let you setup a working bulletin board with Galactic Chimp. I will only need to figure out how classic chooses which towns are supposed to display rumors, but I'm confident with this one.
Last edited by Ferital on Sat May 02, 2020 6:40 am, edited 1 time in total.

User avatar
Galactic Chimp
Posts: 16
Joined: Wed Apr 29, 2020 10:25 pm

Re: Reinforcements arrived.

Post by Galactic Chimp »

Sup? :)
Captured bulleting board.PNG
Captured bulleting board.PNG (24.45 KiB) Viewed 1768 times
Managed to create the model for Bulletin Board and it actually gets hit by player now. Currently, I'm working on making the MessageBox appear. After this is done I'll pm @Ferital so we can try to connect the rumor system to the Bulletin Board.

So far so good, thanks for the tips, they helped.

User avatar
Jay_H
Posts: 4070
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Reinforcements arrived.

Post by Jay_H »

A great start. Keep going Chimp :)

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Reinforcements arrived.

Post by Interkarma »

Awesome, happy you're making swift progress. :)

User avatar
Galactic Chimp
Posts: 16
Joined: Wed Apr 29, 2020 10:25 pm

Re: Reinforcements arrived.

Post by Galactic Chimp »

Crap :evil:

It looks like Bulletin Board models are merged with some City Wall models:
ehhhh.PNG
ehhhh.PNG (490.19 KiB) Viewed 1749 times
I'll need to investigate how to separate these 2 :/
Last edited by Galactic Chimp on Fri May 01, 2020 10:23 pm, edited 1 time in total.

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Reinforcements arrived.

Post by Interkarma »

Yep, that's my first note above. :)
Interkarma wrote: Thu Apr 30, 2020 12:28 am The bulletin board model is currently just combined with other static geometry. You'll first need to ensure this modelID (41739) is split into its own object so it can be interacted with. Look at RMBLayout.cs (ln 774) to see how this is done for city gates. Creating an equivalent IsBulletinBoard() method and check here for modelID 41739 should be adequate to split this to a standalone model.

User avatar
Galactic Chimp
Posts: 16
Joined: Wed Apr 29, 2020 10:25 pm

Re: Reinforcements arrived.

Post by Galactic Chimp »

Sadly, nope, that is not enough :(
nope.png
nope.png (18 KiB) Viewed 1746 times
the Bulletin Board ID is never used in this code :/

EDIT: Clarification:

obj.ModelIdNum is never 41739
Last edited by Galactic Chimp on Fri May 01, 2020 10:38 pm, edited 1 time in total.

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Reinforcements arrived.

Post by Interkarma »

Because it's easier to show in code than explain, I've just pushed the basic bulletin board setup (split model, attach component, detect player clicks).

https://github.com/Interkarma/daggerfal ... ea10934f15

Sorry, not trying to step on toes or anything. It was just more efficient to pop that into code quickly than bounce back and forth in English. :)

From here, you just need to do the popup message in place of the Debug.Log() I added. You can stash behaviour in DaggerfallBulletinBoard component which is being attached to the board model.

User avatar
Galactic Chimp
Posts: 16
Joined: Wed Apr 29, 2020 10:25 pm

Re: Reinforcements arrived.

Post by Galactic Chimp »

Ok, it works now:
Can see bulletin board.PNG
Can see bulletin board.PNG (9.12 KiB) Viewed 1726 times
My error was trying to connect in AddModels() method, but AddProps() was the correct one. Ok, so a learned something about the code today :)

Thanks Interkarma. I'll continue, and if I have any problems I'll let the forum know in this thread.

User avatar
Interkarma
Posts: 7242
Joined: Sun Mar 22, 2015 1:51 am

Re: Reinforcements arrived.

Post by Interkarma »

You're welcome. I should have thought to mention that above, but I honestly didn't think of it until I went to see why it might not have worked for you. Just hit me up if any help needed, it's seriously no problem. :)

Post Reply