Reinforcements arrived.
- Ferital
- Posts: 282
- Joined: Thu Apr 05, 2018 8:01 am
Re: Reinforcements arrived.
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.
- Galactic Chimp
- Posts: 16
- Joined: Wed Apr 29, 2020 10:25 pm
Re: Reinforcements arrived.
Sup?
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.
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.
- Jay_H
- Posts: 4070
- Joined: Tue Aug 25, 2015 1:54 am
- Contact:
Re: Reinforcements arrived.
A great start. Keep going Chimp
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Reinforcements arrived.
Awesome, happy you're making swift progress.
- Galactic Chimp
- Posts: 16
- Joined: Wed Apr 29, 2020 10:25 pm
Re: Reinforcements arrived.
Crap
It looks like Bulletin Board models are merged with some City Wall models:
I'll need to investigate how to separate these 2 :/
It looks like Bulletin Board models are merged with some City Wall models:
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.
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Reinforcements arrived.
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.
- Galactic Chimp
- Posts: 16
- Joined: Wed Apr 29, 2020 10:25 pm
Re: Reinforcements arrived.
Sadly, nope, that is not enough
the Bulletin Board ID is never used in this code :/
EDIT: Clarification:
obj.ModelIdNum is never 41739
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.
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Reinforcements arrived.
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.
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.
- Galactic Chimp
- Posts: 16
- Joined: Wed Apr 29, 2020 10:25 pm
Re: Reinforcements arrived.
Ok, it works now:
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.
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.
- Interkarma
- Posts: 7247
- Joined: Sun Mar 22, 2015 1:51 am
Re: Reinforcements arrived.
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.