Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 466 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
C-Sciipt Settable d3d_antialias? #254526
03/03/09 20:55
03/03/09 20:55
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Howdy. Any chance we can get a settable d3d_antialias in C-Script? I realize that C-Script is quickly going the way of the dinosaurs, but it'd be nice if our legacy code could take advantage of this new feature.

Thanks.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: C-Sciipt Settable d3d_antialias? [Re: Ichiro] #254584
03/04/09 08:47
03/04/09 08:47
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Redefining the variable should work for d3d_antialias. Have you tried

var d3d_antialias = 4;

outside a function?

Re: C-Sciipt Settable d3d_antialias? [Re: jcl] #254673
03/04/09 17:53
03/04/09 17:53
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Yeah, that's what we do now. However, I'm not sure there's a way to allow our players to set the level of antialiasing this way (e.g., in a settings menu)?


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: C-Sciipt Settable d3d_antialias? [Re: Ichiro] #254678
03/04/09 18:40
03/04/09 18:40
Joined: Jul 2007
Posts: 619
Turkey, Izmir
Emre Offline
User
Emre  Offline
User

Joined: Jul 2007
Posts: 619
Turkey, Izmir
Hello Ichiro. My english is really bad. But if i understand your problem, i can help you.
if you use external menu(external exe files)and file_open_read for antialias variable, players can set the level of antialiasing.

you need ifdef for main.wdl;

Html:
ifndef aa_9;	
ifelse; //aa_9 ise
	var d3d_antialias=9;
	function main()
	{
		
		
	}
endif;

ifndef aa_4;	
ifelse; //aa_4 ise
	var d3d_antialias=4;
	function main()
	{
		
		
	}
endif;

ifndef aa_1;	
ifelse; //aa_1 ise
	var d3d_antialias=1;
	function main()
	{
		
		
	}
endif;
ifndef aa_0;	
ifelse; //aa_1 ise
	var d3d_antialias=0;
	function main()
	{
		
		
	}
endif;


end external settings file codes;
Html:
function start_func()
{

	if(antialias_var==0)
	{
		exec("..\\game.exe"," -d aa_0");
	}
	if(antialias_var==1)
	{
		exec("..\\game.exe","-d aa_1");
	}
	if(antialias_var==4)
	{
		exec("..\\game.exe"," -d aa_4");
	}
	if(antialias_var==9)
	{
		exec("..\\game.exe"," -d aa_9");
	}
	exit;
}


Like this;


Re: C-Sciipt Settable d3d_antialias? [Re: Emre] #254680
03/04/09 18:50
03/04/09 18:50
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Hi Emre,

Thanks very much for taking the time to share the workaround! I still would love for players to be able to set the antialiasing level within the game (publishers such as Valve/Steam, Reflexive, etc. have wrappers that don't play nicely with multiple .exes or command line arguments) -- however, this looks like it'll work in a pinch. smile

Thank you.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: C-Sciipt Settable d3d_antialias? [Re: Ichiro] #254691
03/04/09 19:55
03/04/09 19:55
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: Ichiro
(publishers such as Valve/Steam, Reflexive, etc)


Advice: Do not put your game on Reflexive.
Because it's easy to hack games on Reflexive.

When you're publishing your game in Reflexive. They'll ask you to send the FULL GAME. And they'll put a trial function.

And everyone can hack it. That's the problem.

Re: C-Sciipt Settable d3d_antialias? [Re: Cowabanga] #254707
03/04/09 21:25
03/04/09 21:25
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Yeah; it comes down to a numbers game for us -- the revenue stream we gain from a particular portal might outweigh the loss in potential sales from piracy. Given that Wonderful's already available as a torrent, I'm not sure what we'd lose.

Either way, with Reflexive, I'm hoping it's worth it -- our contact point there has been their Director of Marketing, Russell Carroll, who seems like a great guy. Our work with them has been really smooth so far.

Fingers crossed. smile


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: C-Sciipt Settable d3d_antialias? [Re: Ichiro] #254762
03/05/09 09:37
03/05/09 09:37
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
DirectX requires 3d_antialiasing to be set before the video device is opened. Thus, under C-Script the solution by Emre is indeed the best.

Re: C-Sciipt Settable d3d_antialias? [Re: jcl] #254812
03/05/09 17:23
03/05/09 17:23
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
I gotcha. Is there another workaround you might suggest that wouldn't involve calling the engine with any arguments? The exe-calling-exe trick tends to break down with publishers' wrappers. For example, we tried this with our WildTangent build of Wonderful, but they told us that their wrapper went haywire. (Same with Reflexive. Eventually, we upgraded Wonderful to A7, bypassed the need for an exe, and things worked perfectly -- http://www.reflexive.com/TheWonderfulEndoftheWorld.html?related=12.)

Thanks for any suggestions -- I think the ability to turn antialiasing on would make our upcoming game more attractive to players.

Last edited by Ichiro; 03/05/09 17:24.
Re: C-Sciipt Settable d3d_antialias? [Re: Ichiro] #254858
03/05/09 22:27
03/05/09 22:27
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
If you can wait a few days, i'm working on a plugin which lets you enable or disable antialiasing without restarting the engine. It works pretty good already, just more testing is needed. I will release it this weekend hopefully.
If you want i can send you an early version of the dll (as i don't have a7 i need someone for testing ;)), just pm me.

greets
ChrisB


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Page 1 of 2 1 2

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1