[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - FTE + WEB browsing = libCEF or Berkelium

FTE + WEB browsing = libCEF or Berkelium

Discuss CSQC related programming.

Moderator: InsideQC Admins

Re: FTE + WEB browsing = libCEF or Berkelium

Postby Spike » Sat Sep 09, 2017 2:10 am

I don't intend to support file:/// at all. It violates the premise of sandboxing. fte://data/ should be used instead.
yes libcef appears to be a little crashy still. I don't know what I can do about that, many of the crashes I've seen appear to come from outside of my code (they may still be my fault, but I've no idea how to avoid them). the one I've been getting lately crashes the browser process, rather than any of my code.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Sat Sep 09, 2017 7:25 am

No Spike, I never used file:// (I'm not that noob). fte://data/ and fte://csqc give same cross origin problem (I noticed that thanks to the great ced_devtools cvar, awesome!).
Could you help me to pass a var from qc to cef and vice-versa? Because in Crafter I created CUI (Crafter User Interface) where I intercept mouse click state. Since onmouseover works on cef, if I can pass that var in Javascript I could do if onmouseover && clickevent == true -> click event trigger, and we're good. Otherwise all the good work you did, without mouse click, becomes very difficult to use.
Yes you could use onmouseover to click but, meh...

**EDIT**: I noticed you updated FTE trunk to use last version of CEF.. awesome! :biggrin:
- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Thu Sep 14, 2017 6:12 pm

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Thu Sep 14, 2017 8:04 pm

- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Thu Sep 14, 2017 10:15 pm

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Sat Sep 16, 2017 1:05 am

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Sat Sep 16, 2017 8:46 am

Thanks a lot pitchatan! Very interesting the idea of using cvars! Unfortunately it doesn't work for me! :biggrin:
I mean, did it work for you the example you posted? If you put that html file as a shader on a wall or paint it on screen via drawpic() in csqc, can you click on slider or get cvar value?
Because my problem is that click event is not passed from csqc to cef, so I can click as many times I want but nothing happens. So I change evento to 'onmouseover' on setsensitivity and hovering on slider makes appear the value of '15' for sensitivity but if I try to read sensitivity value, hovering on getsensitivity input box, it alerts "getcvar_sensitivity " without any value.
Get stats buttons on the bottom of the page, instead, they work

If, instead, I use console cef fte://data/index.html, of course click event works, slider works, but getcvar_sensitivity alert value is always blank

Anyway you give me a great input with cvars: I'll make some test and I'll post them here
- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Sat Sep 16, 2017 12:55 pm

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Sat Sep 16, 2017 1:41 pm

- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Sat Sep 16, 2017 3:53 pm

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Sun Sep 17, 2017 8:08 am

- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby pitchatan » Sun Sep 17, 2017 10:57 am

pitchatan
 
Posts: 31
Joined: Sun Aug 10, 2008 6:54 pm
Location: sweden

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Sun Sep 17, 2017 3:39 pm

- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Re: FTE + WEB browsing = libCEF or Berkelium

Postby Spike » Tue Sep 26, 2017 4:14 pm

http://triptohell.info/moodles/win32/ft ... ef_x86.dll tweaks a few things. Hopefully you'll find it to be a little more reliable.

and gecko_create can accept two args, which avoids the need for a separate navigate call.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Re: FTE + WEB browsing = libCEF or Berkelium

Postby toneddu2000 » Wed Sep 27, 2017 6:23 pm

- my first commercial game, made with FTEQW game engine
toneddu2000
 
Posts: 1395
Joined: Tue Feb 24, 2009 4:39 pm
Location: Italy

Previous

Return to CSQC Programming

Who is online

Users browsing this forum: No registered users and 1 guest