I've just started out a bit with Perl 6 using Rakudo. Anything bad I should know about the performance before getting on with it?
[QUOTE=Capsup;37230797]I'm using elements so that's why I put in vertices of 4, but get 2 triangles. Triangle 1 = element 0, 1, 2 and triangle 2 = element 1, 2, 3.
So I'm pretty sure it should be correct..?[/QUOTE]
Oh. Right. Didn't notice.
Yeah, there's nothing wrong with doing that.
[QUOTE=T3hGamerDK;37231305]Just hard code the resolution, man.[/QUOTE]
that doesn't have anything to do with my issue
my issue is that fonts you create in the scripted environment are destroyed when you change resolutions
so basically, this:
[img]http://img600.imageshack.us/img600/5281/halflife2sandbox.png[/img]
becomes this:
[img]http://img40.imageshack.us/img40/5281/halflife2sandbox.png[/img]
[QUOTE=amcfaggot;37231347]that doesn't have anything to do with my issue
my issue is that fonts you create in the scripted environment are destroyed when you change resolutions[/QUOTE]
Wrap the fonts in some sort of proxy so that you don't use the font handles directly?
[QUOTE=danharibo;37231369]Wrap the fonts in some sort of proxy so that you don't use the font handles directly?[/QUOTE]
Yeah, that's what I'll have to do. My only concern is that the functions then become misleading to anyone who moves from Lua to C++.
Currently,
[lua]surface.DrawSetTextFont( HFont font )[/lua]
would be
[cpp]surface()->DrawSetTextFont( vgui::HFont hFont )[/cpp]
But wrapping it would mean you never actually use that type.
And you get something like:
[lua]surface.DrawSetTextFont( HFontContainer fontcontainer )[/lua]
to
[cpp]surface()->DrawSetTextFont( vgui::HFont hFont )[/cpp]
I think I'm being picky for the sake of semantics. But I dunno, it's my project, and that was one of the paradigms - to keep as close as possible to the Source SDK.
[QUOTE=amcfaggot;37231347]that doesn't have anything to do with my issue
my issue is that fonts you create in the scripted environment are destroyed when you change resolutions
so basically, this:
[img]http://img600.imageshack.us/img600/5281/halflife2sandbox.png[/img]
becomes this:
[img]http://img40.imageshack.us/img40/5281/halflife2sandbox.png[/img][/QUOTE]
I don't know anything about the source engine, but can't you just hook in to the resolution changing (or new graphics context) and have it rebuild the fonts? Cost obviously isn't an issue because you're changing the resolution in the source engine.
Do you think that's still acceptable, and I'd just tell people in documentation that HFontContainers allow for handle continuity?
[QUOTE=amcfaggot;37231457]Yeah, that's what I'll have to do. My only concern is that the functions then become misleading to anyone who moves from Lua to C++.
Currently,
[lua]surface.DrawSetTextFont( HFont font )[/lua]
would be
[cpp]surface()->DrawSetTextFont( vgui::HFont hFont )[/cpp]
But wrapping it would mean you never actually use that type.
And you get something like:
[lua]surface.DrawSetTextFont( HFontContainer fontcontainer )[/lua]
to
[cpp]surface()->DrawSetTextFont( vgui::HFont hFont )[/cpp]
I think I'm being picky for the sake of semantics. But I dunno, it's my project, and that was one of the paradigms - to keep as close as possible to the Source SDK.[/QUOTE]
Well just do what makes the most sense, you have to take into account that Lua isn't really C++, you can't always apply the same ideas in the same way.
[QUOTE=Jookia;37231480]I don't know anything about the source engine, but can't you just hook in to the resolution changing (or new graphics context) and have it rebuild the fonts? Cost obviously isn't an issue because you're changing the resolution in the source engine.[/QUOTE]
Yep, that's the plan. My only problem here is concern for semantics.
[editline]14th August 2012[/editline]
[QUOTE=danharibo;37231487]Well just do what makes the most sense, you have to take into account that Lua isn't really C++, you can't always apply the same ideas in the same way.[/QUOTE]
Yeah, you're right. Well I guess that answers that.
You could always write it in a gotchas.txt file for Lua users, but Lua users shouldn't be trying to C++.
[QUOTE=Jookia;37231550]You could always write it in a gotchas.txt file for Lua users, but Lua users shouldn't be trying to C++.[/QUOTE]
I think I'll just stick to putting it down as a note in the documentation, but yeah. Lua users shouldn't be trying to face the same problems C++ users do, for sure, but the reasoning for the API being so similar is to provide a better sense of what is being used internally, while still having ease of development. It is scripting after all.
[editline]14th August 2012[/editline]
Thanks for your feedback guys.
Update of Gamescom stuff:
[img]http://i.imgur.com/LHWvL.jpg[/img]
We get chairs tomorrow morning.
(By the way we couldn't find the Valve booth..)
What's that in front of the computer with Not Tetris running?
[QUOTE=Richy19;37232077]Why a driving wheel for pacman?[/QUOTE]
Because we can.
(You rotate the screen and pacman tumbles about in the game.)
[QUOTE=Maurice;37232003](By the way we couldn't find the Valve booth..)[/QUOTE]
its still in development
[editline]14th August 2012[/editline]
[QUOTE=Maurice;37232109]Because we can.
(You rotate the screen and pacman tumbles about in the game.)[/QUOTE]
i was expecting pac-man drive-bys
this is okay too
[QUOTE=Maurice;37232003]Update of Gamescom stuff:
[img]http://i.imgur.com/LHWvL.jpg[/img]
We get chairs tomorrow morning.
(By the way we couldn't find the Valve booth..)[/QUOTE]
Awesome
[QUOTE=Maurice;37232003]Update of Gamescom stuff:
[img]http://i.imgur.com/LHWvL.jpg[/img]
We get chairs tomorrow morning.
(By the way we couldn't find the Valve booth..)[/QUOTE]
Did gamescon/anyone contact you about going there? or did you just decide to go?
Finally decided after a few months of frustration to give learning Python another crack.
The coolest bit so far is finding a use for my TV while I'm on my PC. Now I can have the help guides and tutorials display on my TV with powershell, Notepad++, and the python shell on my laptop screen. Pretty neato.
[QUOTE=Richy19;37232399]Did gamescon/anyone contact you about going there? or did you just decide to go?[/QUOTE]
I think it's more you contacting gamescon
Since when does steam allow for game maker games?
[QUOTE=Richy19;37232466]Since when does steam allow for game maker games?[/QUOTE]
I don't think Valve cares entirely about what the software used to develop the game is. They always seem far more interested in seeing an actually fun game.
I remember not so long ago they said that games made with game making tools werent allowed
[QUOTE=Richy19;37232534]I remember not so long ago they said that games made with game making tools werent allowed[/QUOTE]
They have never said that
Unless of course you are put on there for some weird reason such as for this:
[url]http://www.valvetime.net/attachments/half-life3reveal-png.23733/[/url]
Valve didn't put that on there and wanted it off.
[editline]14th August 2012[/editline]
And for those who don't know, IIRC the player physics in Source are mostly hardcoded to give it a nice feeling.
[QUOTE=Richy19;37232534]I remember not so long ago they said that games made with game making tools werent allowed[/QUOTE]
Games which can't be run using an exe file aren't allowed, that's pretty much it.
Sorry, you need to Log In to post a reply to this thread.