Reinforcements arrived.

Discuss coding questions, pull requests, and implementation details.
User avatar
mikeprichard
Posts: 1028
Joined: Sun Feb 19, 2017 6:49 pm

Re: Reinforcements arrived.

Post by mikeprichard » Fri May 01, 2020 11:37 pm

I hope it's OK if I very briefly hijack the thread for one post, as I noticed a new person skilled at coding and interested in contributing has joined - always great to see for a yahoo like me with no technical skill who just likes to enjoy even more great features and content in DFU. My question: is there already someone working/planning to soon begin work on implementing the "Exit to Main Menu" function (preferably to the DFU main menu, so settings can first be changed, with the classic main menu then only one click away) on the ESC menu or elsewhere? If not, would Galactic Chimp be interested/suited to the task? Sorry if this is an inappropriate post, but I was simply pleased to see a new developer coming in to help - cheers, and carry on!

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

Re: Reinforcements arrived.

Post by Galactic Chimp » Fri May 01, 2020 11:50 pm

Progress!
Welcome.PNG
Welcome.PNG (266.64 KiB) Viewed 313 times
Now, it's time to connect rumors.

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

Re: Reinforcements arrived.

Post by Galactic Chimp » Fri May 01, 2020 11:53 pm

mikeprichard wrote:
Fri May 01, 2020 11:37 pm
I hope it's OK if I very briefly hijack the thread for one post, as I noticed a new person skilled at coding and interested in contributing has joined - always great to see for a yahoo like me with no technical skill who just likes to enjoy even more great features and content in DFU. My question: is there already someone working/planning to soon begin work on implementing the "Exit to Main Menu" function (preferably to the DFU main menu, so settings can first be changed, with the classic main menu then only one click away) on the ESC menu or elsewhere? If not, would Galactic Chimp be interested/suited to the task? Sorry if this is an inappropriate post, but I was simply pleased to see a new developer coming in to help - cheers, and carry on!
Well I could try but this looks it would involve changing the pause menu. This is probably doable (don't quote me on this). I'll take a look after finishing my current task, unless a more experienced dev has any objections.

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

Re: Reinforcements arrived.

Post by Interkarma » Fri May 01, 2020 11:54 pm

Woo, nice one! :)

Also Mike, I was looking at fixing that New Game UI escape key bug when you posted. It's fixed now.

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

User avatar
mikeprichard
Posts: 1028
Joined: Sun Feb 19, 2017 6:49 pm

Re: Reinforcements arrived.

Post by mikeprichard » Fri May 01, 2020 11:57 pm

Very nice - thank you both! And great to see Chimp making so much progress already on the board feature - going to be fun to see it in game.

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

Re: Reinforcements arrived.

Post by Galactic Chimp » Sun May 03, 2020 6:21 pm

Progress!
First bulletin.PNG
First bulletin.PNG (189.01 KiB) Viewed 266 times
Sec bulletin.PNG
Sec bulletin.PNG (125.06 KiB) Viewed 266 times
3rd bulletin.PNG
3rd bulletin.PNG (129.87 KiB) Viewed 266 times
Looks pretty nice so far, if I may say so myself.

Some questions I have:

-How can you add newline in a MessageBox? I wanted the messages to be: "{CityName} \n {Rumor}" but \n doesn't work.
-Currently the message changes each time you read it. Does anyone know how often the message change in Classic? Perhaps each time the rumors are recalculated? It's easy to fix this once I have the info.

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

Re: Reinforcements arrived.

Post by Interkarma » Sun May 03, 2020 7:42 pm

Well done! This is coming together quickly. :) For the first question, you'll need create a token array. I'll put together an example for you when I can, won't be in front of my PC for next several hours.

Not sure on frequency, but it's not often. I had to travel around quite a bit before I saw even a single rumour posted. Maybe Ferital or someone else familiar will be able to help here.

User avatar
Ralzar
Posts: 1064
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Reinforcements arrived.

Post by Ralzar » Sun May 03, 2020 8:56 pm

It shouldn't be the main focus obviously, but I'll still just throw this out there: mod access to the billboard text.

I'm sure some modders could come up with some fun stuff to use those for ;)
My released mods

"I feel like Ralzar specifically wrote those mods for me and then said "Use them". Just so he could watch me die more."
-FuzzyBeanPlays

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

Re: Reinforcements arrived.

Post by Galactic Chimp » Sun May 03, 2020 9:03 pm

More progress:
better bulletin board formatting.PNG
better bulletin board formatting.PNG (141.09 KiB) Viewed 247 times
looks better now.

The code is a bit ugly, but I'll refactor it later, after everything works (actual changes are after L342 ):

https://github.com/GalacticChimp/dagger ... 6e2cc0165d
Ralzar wrote:
Sun May 03, 2020 8:56 pm
It shouldn't be the main focus obviously, but I'll still just throw this out there: mod access to the billboard text.

I'm sure some modders could come up with some fun stuff to use those for ;)
I'll see what I can do ;)

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

Re: Reinforcements arrived.

Post by Galactic Chimp » Sat May 09, 2020 6:01 pm

Ok, since I'm waiting for Ferital to research classic behavior of Bulletin Boards (more specifically, how often they change), I'll take a look at something else to work on, for now.

Post Reply