Search found 95 matches
- 2014-09-12, 19:13
- Forum: Coding and Scripting
- Topic: GUI not displaying
- Replies: 7
- Views: 18216
Re: GUI not displaying
I tried using the code as you do in Console_main.cgui by doing: local gui = ... assert(loadfile("Games/Duel/GUIs/ScoreBoard_init.cgui"))(gui) local Background = gui:GetRootWindow() local ScoreBoardFrame = Background.ScoreBoardFrame function Background:OnKeyReleased(key) if (key==15) then -- Key numb...
- 2014-09-11, 02:18
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Re: Unable to run mod in latest build
I've has an attempt at making the FindByComponent() function, but my understanding of what I am doing is not high enough currently, so I am getting very confused
I'll come back to it in a couple of weeks if you haven't got there first
I'll come back to it in a couple of weeks if you haven't got there first
- 2014-09-11, 01:40
- Forum: Coding and Scripting
- Topic: GUI not displaying
- Replies: 7
- Views: 18216
Re: GUI not displaying
I have got the scoreboard displaying when pressing tab now, however, it doesn't clear when releasing the tab key. I tried adding the code below into the scoreboard gui. local gui = ... assert(loadfile("Games/Duel/GUIs/ScoreBoard_init.cgui"))(gui) local Background = gui:GetRootWindow() local ScoreBoa...
- 2014-09-10, 16:14
- Forum: Coding and Scripting
- Topic: Game Rules scripting entry point
- Replies: 18
- Views: 79363
Re: Game Rules scripting entry point
Sound advice, and actually, something that I would normally have done myself
I have updated the functions on my side, although I'll leave the posted files as are. I thought it was time for me to give a little something back, to save people from having to ask you as many questions as I have!!
I have updated the functions on my side, although I'll leave the posted files as are. I thought it was time for me to give a little something back, to save people from having to ask you as many questions as I have!!
- 2014-09-10, 06:19
- Forum: Coding and Scripting
- Topic: Game Rules scripting entry point
- Replies: 18
- Views: 79363
Re: Game Rules scripting entry point
I have noticed my threads very rarely end with my posting the results of solving my problems, so in a rare case of getting back on track, I am going to post details of my GameType component which is used as an entry point for the game rules and lua code. First up is the CompGameType. This is a simpl...
- 2014-09-10, 05:28
- Forum: Coding and Scripting
- Topic: GUI not displaying
- Replies: 7
- Views: 18216
Re: GUI not displaying
I don't have a diff patch, as I am working on my laptop and don't have a Git client. Good news is I start a new job soon, so I'll be able to get sorted and back online on my main PC again
I'll be on the laptop for a couple of weeks, then I may be offline again while I get sorted out for a month.
I'll be on the laptop for a couple of weeks, then I may be offline again while I get sorted out for a month.
- 2014-09-09, 05:56
- Forum: Coding and Scripting
- Topic: GUI not displaying
- Replies: 7
- Views: 18216
GUI not displaying
I have linked up the TAB key to display a scoreboard. I have a simple plain screen I am trying to display, but when I press tab, the GUI is not displayed. As a test, I altered the assert(loadfile....) to an invalid path, and when I tested it in the engine, when I pressed the TAB key, the assert fail...
- 2014-09-09, 02:59
- Forum: Models, Materials, Textures, Sound, Music, ...
- Topic: Multi-Player Demo
- Replies: 4
- Views: 16030
Re: Multi-Player Demo
Here is a look into my current priorities while working on this project through my trello board. It is not updated regularly, but tends to get updated with a lot of things at once when it does, like today.. https://trello.com/b/shX5l0xL/duel-cafu Once I have things working to some degree, I will lin...
- 2014-09-08, 20:59
- Forum: Coding and Scripting
- Topic: Player Control
- Replies: 4
- Views: 35497
Re: Player Control
Making some progress in understanding on this. I am just working on implementing the scoreboard into the human player component. I see your comments on making GUI's a separate component, that is a very good idea, and I may have a go at that at some point. Overall, there are a lot of things I want to...
- 2014-09-07, 00:10
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Re: Unable to run mod in latest build
OK, It seems I really don't have an idea. I am not sure where to start.. Could you point me in the right direction, and I will have a go at the code
- 2014-09-06, 20:32
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Re: Unable to run mod in latest build
I'll have a go and will get you to check/advise on the progress I am making or not...
- 2014-09-06, 19:06
- Forum: Coding and Scripting
- Topic: Player Control
- Replies: 4
- Views: 35497
Player Control
I have looked but other than PlayerCommand.hpp I can't find anything to do with player controls. I want to set it up so that when a user presses tab a scoreboard comes up. I have created the scoreboard GUI, now I need to enable the TAB key to activate it. Sorry for asking so many questions on the wh...
- 2014-09-06, 15:01
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Re: Unable to run mod in latest build
I am not using a call to the Map global variable currently.
As a quick question, what command would I use to search for all game entities with a specified component?
As a quick question, what command would I use to search for all game entities with a specified component?
- 2014-09-05, 17:03
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Re: Unable to run mod in latest build
Yes, I am referring to those paths, as well as the path in CompHumanPlayer.cpp for the GUI. I haven't come across any other C++ hard coded links yet.
I think there should be a rule of no game paths hardcoded in the c++ side of the game, as it breaks flexibility.
I think there should be a rule of no game paths hardcoded in the c++ side of the game, as it breaks flexibility.
- 2014-09-05, 04:49
- Forum: Cafu Engine Support and Discussion
- Topic: Unable to run mod in latest build
- Replies: 13
- Views: 13103
Unable to run mod in latest build
Hi Carsten, I updated to the latest version of cafu, but now for some reason my mod doesn't load. The -svGame Duel command loads up into the menu. I see the Duel Map, which is only in the Duel path, but when I load it up, although it loads up the correct map, I get an error at HUD_main.cgui:125 - Ba...