..:: PCSX2 Forums ::..
Register | Help | Log In |
Register PCSX2 Site Forums Member List Donate View Today's Posts Search

Current time: 03-19-2010, 03:31 AM Hello There, Guest! (Login — Register)

..:: PCSX2 Forums ::.. / Plugins / Discussion and support / ZZogl -- Zero GS KOSMOS fork

2 users browsing this thread: (0 members, and 2 guests).

Pages (120): « Previous 1 ... 2 3 4 5 6 ... 120 Next »
Post Reply 
 
Thread Rating:
  • 33 Votes - 4.18 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
ZZogl -- Zero GS KOSMOS fork
Author Message
chuuey Offline
Member
**

Posts: 64
Joined: Jan 2009
Location:
Post: #31
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
ok i added that line to zerogs.h , now i get 23 errors instead of 307 Wink
ok i found all of these files in other emu includes, going to report back soon
managed to include zlib in there, only 11 errors left because of that wgltext.h header Wink

and i managed to get that wglext.h in there, but now there's a lot of errors like

1>d:\beta\zerogs\opengl\ZeroGSShaders/zerogsshaders.h(52) : error C2065: 'macros' : undeclared identifier
1>..\ZZoglCreate.cpp(1031) : error C2065: 'hRC' : undeclared identifier
1>d:\beta\zerogs\opengl\zerogs.h(639) : error C2062: type 'int' unexpected

around 120 errors mostly in zerogsshaders.h
cheers Wink
(This post was last modified: 02-27-2009 01:09 AM by chuuey. Edit Reason: )
02-27-2009 12:48 AM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 961
Joined: Dec 2008
Location:
Post: #32
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
extensions are here: http://www.opengl.org/registry/, look at Extension Header Files, but it right in the ZZogl directory (I rather do not made suggestions here -- I don't know windows build system). And with ztutil, you found a new pcsx2-plugins bug :-). zerogsogl_2008.vcproj should be updated. All issues with

RelativePath="..\3rdparty\zlib\adler32.c"

Should be changed to (I do it in r47)

RelativePath="..\..\..\..\3rdparty\zlib\adler32.c"

And I report an issue to a main developers branch.
(This post was last modified: 02-27-2009 01:24 AM by Zeydlitz. Edit Reason: )
02-27-2009 01:16 AM
Find all posts by this user Quote this message in a reply
chuuey Offline
Member
**

Posts: 64
Joined: Jan 2009
Location:
Post: #33
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
whoa i didn't realize that's a bug Wink well i found all the include files needed and VS doesn't complain about them anymore, but all those errors start poping up like there's something wrong with the syntax i mentioned above, or is this the problem with VS's compiler?
02-27-2009 01:23 AM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 961
Joined: Dec 2008
Location:
Post: #34
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
It's just normal thing, when you first try to compile something on another arch. And zerogs ogl windows was lesser supported one ever (linux one was fixed regulary). Give me a new issue, please.
02-27-2009 01:27 AM
Find all posts by this user Quote this message in a reply
chuuey Offline
Member
**

Posts: 64
Joined: Jan 2009
Location:
Post: #35
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
well aside from those syntax errors all over a place i've got nothing to report Wink hopefully i will be able to test the plugin running on windows sometime Smile or if you mean to post the errors that occur i can make a shot of all of them Wink cheers

by the way i compile the zerogs from pcsx2 main svn without any issues cause i saw you asked me about it earlier
(This post was last modified: 02-27-2009 01:32 AM by chuuey. Edit Reason: )
02-27-2009 01:30 AM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 961
Joined: Dec 2008
Location:
Post: #36
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
There are two of them: openGL and DX under windows. DX should be compilable, yes. But openGL one... I think it's impossible
02-27-2009 01:36 AM
Find all posts by this user Quote this message in a reply
chuuey Offline
Member
**

Posts: 64
Joined: Jan 2009
Location:
Post: #37
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
1>ZeroGS-OpenGL-Pg - 0 error(s), 4 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

i just compiled it, there were also wglext and zlib file missing but i just copied them over Wink

that's the opengl version of the pcsx2 svn zerogs compile
(This post was last modified: 02-27-2009 01:45 AM by chuuey. Edit Reason: )
02-27-2009 01:41 AM
Find all posts by this user Quote this message in a reply
salomaoo Offline
Newbie

Posts: 9
Joined: Feb 2009
Location:
Post: #38
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
im no coder but after messing with the includes, and renaming createwindow funtion to createwindowz i got stuck with this
Code:
1>c:\users\salomão\documents\pcsx2\plugins\zzogl\GS.h(530) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\salomão\documents\pcsx2\plugins\zzogl\GS.h(1007) : warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence
1>..\ZZoglSave.cpp(519) : error C3861: 'snprintf': identifier not found
1>..\ZZoglSave.cpp(530) : error C3861: 'snprintf': identifier not found
1>ZZoglCreate.cpp
1>c:\users\salomão\documents\pcsx2\plugins\zzogl\GS.h(530) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\salomão\documents\pcsx2\plugins\zzogl\GS.h(1007) : warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence
1>..\ZZoglCreate.cpp(227) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(276) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(278) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(281) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(283) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(286) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(288) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(291) : error C2065: 'hRC' : undeclared identifier
1>..\ZZoglCreate.cpp(291) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(293) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(296) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(296) : error C2065: 'hRC' : undeclared identifier
1>..\ZZoglCreate.cpp(298) : error C2562: 'ZeroGS::CreateWindowZ' : 'void' function returning a value
1>        c:\users\salomão\documents\pcsx2\plugins\zzogl\zerogs.h(638) : see declaration of 'ZeroGS::CreateWindowZ'
1>..\ZZoglCreate.cpp(518) : error C2065: 'bSuccess' : undeclared identifier
1>..\ZZoglCreate.cpp(983) : error C3861: 'STOP_AVI': identifier not found
1>..\ZZoglCreate.cpp(1032) : error C2065: 'hRC' : undeclared identifier
1>..\ZZoglCreate.cpp(1039) : error C2065: 'hRC' : undeclared identifier
1>..\ZZoglCreate.cpp(1043) : error C2065: 'hRC' : undeclared identifier
1>..\ZZoglCreate.cpp(1046) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(1046) : error C2065: 'hDC' : undeclared identifier
1>..\ZZoglCreate.cpp(1049) : error C2065: 'hDC' : undeclared identifier

1 the snprint ones will be gone by changing them to _snprintf
2 if i just copy/paste the hdc defs in zerogs to zzoglcrete there will be linker errors.
3 same if i include aviutil.h in zzoglcreate
4 bsuccess will be gone if changed to bool bsuccess

yesterday night i got to build a dll, but it had something weird, like the video opening in ToA that flicked really bad even without the speedhacks.
hitting esc, the run -> execute would make the flickering disapper, but would give a Release device error.

any hints so i dont have to luck guess and hope it works (again)? Tongue
02-27-2009 07:58 PM
Find all posts by this user Quote this message in a reply
Zeydlitz Offline
Plugin Author
*****

Posts: 961
Joined: Dec 2008
Location:
Post: #39
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
STOP_AVI, sprinrf and bsuccess could be easily removed, and HDC and HRC are very important (I think it's they made a flickering)! You supposed to made them extern, not copy. Create_Window should be inline bool. I update the source, get the latest revision.
(This post was last modified: 02-28-2009 12:48 AM by Zeydlitz. Edit Reason: )
02-28-2009 12:39 AM
Find all posts by this user Quote this message in a reply
salomaoo Offline
Newbie

Posts: 9
Joined: Feb 2009
Location:
Post: #40
RE: ZZogl -- New open GL plugin -- Zero GS KOSMOS fork
So far did this :
1- unincluded aviutil.h from zerogs.cpp ( was giving some linker errors and now not needed i think Smile )
2- moved from zerogs.cpp to ZZoglshaders.cpp (something about not defined when debug or devel build)
Code:
#ifdef _WIN32
//#define EFFECT_NAME "f:\\ps2dev\\svn\\pcsx2\\ZeroGS\\opengl\\"
char* EFFECT_DIR = "C:\\programming\\ps2dev\\zerogs\\opengl\\";
char* EFFECT_NAME = "C:\\programming\\ps2dev\\zerogs\\opengl\\ps2hw.fx";
#else //  NOT _WIN32
char EFFECT_DIR[255] = "~/pcsx2/plugins/gs/zerogs/opengl/";
char EFFECT_NAME[255] = "~/pcsx2/plugins/gs/zerogs/opengl/ps2hw.fx";

3-in zerogs.h:
//#include "common/PS2Etypes.h"
//#include "common/PS2Edefs.h"
and #include <windows.h> before gl/gl.h
moved #include "ZeroGSShaders/zerogsshaders.h" to after using namespace std;
renamed ZeroGs::CreateWindow to Zerogs::create_window (its says createwindow is a macro that is defined in winuser.h)

4-in ZZoglcreate.cpp:
#include "resource.h"
renamed again createwindow function to create_window

after this get this error:
1>GSmain.obj : error LNK2001: unresolved external symbol "void __cdecl SysMessage(char const *,...)" (?SysMessage@@YAXPBDZZ)

fixing it changing it to look same as is gs.h will tehn give this error:

zzoglvb.cpp(92) : error C4716: 'ZeroGS::VB::CheckFrame32bitRes' : must return a value

guessed a random number and made it return. after this it builds a .dll Smile
oh , somewhere in between it complains about not having afxres.h in the win32 folder. just copy afxresmw.h from pcsx2/commom/include and rename
(This post was last modified: 02-28-2009 02:17 AM by salomaoo. Edit Reason: )
02-28-2009 02:14 AM
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Pages (120): « Previous 1 ... 2 3 4 5 6 ... 120 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:


Current time: 03-19-2010, 03:31 AM

Contact Us | PCSX2 | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication

Powered By MyBB, © 2002-2010 MyBB Group.
Theme created by IncadudeF and modified by bositman