SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Technology Preview 4
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    SEAL Forum Index -> Seal 3.0 Development
View previous topic :: View next topic  
Author Message
ganesh



Joined: 11 Jul 2002
Posts: 133
Location: Vancouver, BC, CA

PostPosted: Wed Jul 31, 2002 3:55 pm    Post subject: Technology Preview 4 Reply with quote

Yet another preview.

I am downloading mingw, and Ill put up Windows Binaries in a day (after compiler differences have been sorted out). DJGPP compiles the code on my machine without any errors (except for dlxload.cc). I cannot get an EXE because of AllegTTF and DLX. The DLX port is halfway through. AllegTTF I dont know.

Quote:

A small ChangeLog :

2.70.0 - Preview 4
==================

+Two new functions to sfcList (list_[set/get]_item_d)
+Virtual FileSystem finally working. Rewritten from scratch.
+Ported SFA library. Cleaned up somethings which I call dirty.
+Made ExitFunctions list work like a stack.
+An object profiler for lists. Buggy. Shows -1 for free (!!)
+colors read from registry.
+all linked lists now depend on sfcList.
+Removed all references to stkWidgetNode, sdkAppNode
+Optimized some drawing functions by making them recursive (walk_* funcs)
+Registry format fixes
+New widgets: ListBox. Not tested fully.
+fixed segfault when no object is present
+fixed memleak in ftype.cc; fonts destroyed on exit.
+fixed memleak in init.cc; No its still there. Cant find it.
+Added a new console feature. No GUI for Seal. Very useful for hackers.
+Beep during system shutdown. UNIX like...
+Fixed LFN issue with stkWidget.h; credit : FK
+Console debugging output now cleaner and formatted.
+Included missing AllegTTF sources. No. Doesnt compile with GCC 3.x
+SPI Header files included. while(1) for Owen
+Wrote a tutorial on sfcLists. see doc/sfclist.txt
+Desktop redrawn after colors read. (only desktop face color)
+Added a __TRACE__ macro, can trace your code by line and file. see seal.h


The big things are SFA, VFS and Kernel Optimisation (thanx to gcov).

I have left most of the code code commented out, for reference. I did not have the time to actually test it fully. Beat it to your satisfaction.

I might have done somethings wrongly, or left some holes. A simple example is what should the root of the VFS be ? It was called DESKTOP, what now. So I have not coded that.

Another thing is the default adaptor for VFS is called LocalFS. I was seriously thinking of allowing mounts in subdirectories. Still dont know whether it is needed. So thats out too.

BRB.
_________________
Ganesh lives @
www.iamganesh.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
axis



Joined: 03 Nov 2001
Posts: 20
Location: Uruguay

PostPosted: Wed Jul 31, 2002 4:27 pm    Post subject: Reply with quote

WOULD YOU PLEASE POST DOS BINARIES SOMEWHERE????
I really would like to try the previews!
Thanx
Back to top
View user's profile Send private message Visit poster's website
BadSector
Administrator


Joined: 24 Oct 2001
Posts: 328
Location: Greece, Samos

PostPosted: Wed Jul 31, 2002 8:01 pm    Post subject: Reply with quote

ganesh's code cannot be compiled under DOS... DLX/SXL doesn't support C++
_________________
main(){printf("Hello, world!n"); return 0;}
Bad Sector - http://www.bsector.cjb.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Thu Aug 01, 2002 11:07 am    Post subject: Reply with quote

OK. Finally i can get to develop something. (Of course if i can get to compile)
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ganesh



Joined: 11 Jul 2002
Posts: 133
Location: Vancouver, BC, CA

PostPosted: Fri Aug 02, 2002 2:29 pm    Post subject: Reply with quote

Ok,

Windows binaries are here.

I had to cut-copy-paste so much code that it took almost six hours to get a working EXE.

The code is incompatibe with the previous release :

Compiles and runs under :
MINGW ( my primary compiler for this release )
LINUX ( just a script over ssh )
MSVC ( my editor, didnt have time to download gvim. There is a small error in cfg.c, that I have to sort out. As usual, its not my code, so I dont know whats happening. )
DJGPP (compiles with two warnings, but I can get an EXE, dunno if it runs )

Libraries in the tarball :
liballeg.lib ( for msvc )
liballeg.a (for mingw )

You can try out your compiler+environment with any of the following scripts :

linux.sh
dj.bat
minwg.bat

If anybody has build difficulties, post here.

What can you see ?
A skinned button inside a window, with a panel on the top. You can click the button (it redraws another skin) but it does nothing. Press any key to quit.

You can change the skin my modifying skin.skn (almost everything is changing, so dont make the coolest skin on earth)

Next, making signals work ( it used to work with the original release 4, but the code has been commented out because of some problems, see widget.cpp)

And then menus, textboxes and some cleanups.

Have fun.
_________________
Ganesh lives @
www.iamganesh.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ganesh



Joined: 11 Jul 2002
Posts: 133
Location: Vancouver, BC, CA

PostPosted: Fri Aug 02, 2002 2:46 pm    Post subject: Reply with quote

one more small detail :

I use the source from g:/seal, thats a samba share.

so maybe the skinning and registry will not work (i have hardcoded them)

so change registry.h, theres a define.
_________________
Ganesh lives @
www.iamganesh.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
axis



Joined: 03 Nov 2001
Posts: 20
Location: Uruguay

PostPosted: Fri Aug 02, 2002 7:28 pm    Post subject: what the hell?? Reply with quote

Ganesh: your compiled version of seal 2.76 needs some kind of allegro dll.
What am I supposed to do?
Back to top
View user's profile Send private message Visit poster's website
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Sat Aug 03, 2002 12:07 am    Post subject: Reply with quote

You muct download and install the allegro game library - alleg.sf.net.
I think
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Sat Aug 03, 2002 12:37 am    Post subject: Reply with quote

Well i got the new version to build without large errors. But all i see is just a black screen and a cursor.

FIX to previous msg: Axis: you need a precompiled windows allegro41.dll.
alleg.sf.net only has allegro402.dll. Dont know if it will work with that one.

Or ofcourse you can build one yourself.
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ganesh



Joined: 11 Jul 2002
Posts: 133
Location: Vancouver, BC, CA

PostPosted: Sat Aug 03, 2002 1:54 am    Post subject: Reply with quote

Yeah, I am against static linking of the Allegro library.

Alleg402 should work, its binary compatible with alleg410.

You get a bla[n,c]k screen because it is not able to read the registry and skin details. It defaults to g:/seal/ which is my samba share.

Open registry.h and change the define. Everything should be fine. Ofcourse, you have to recompile. Can somebody test it with DJGPP ??

BTW its seal 2.72. No version jumps from 2.70, because no new features were added.

Am i repeating too much of stuff ??
_________________
Ganesh lives @
www.iamganesh.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
lukas139



Joined: 29 Mar 2002
Posts: 293
Location: Slovakia

PostPosted: Sat Aug 03, 2002 3:21 am    Post subject: Reply with quote

I got everything working now.
Its very good. Maybe gonna do some develoiping if i get time.

Good work ganesh
_________________
Lukas Lipka
My Home
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Sat Aug 03, 2002 3:27 am    Post subject: Reply with quote

WHEEE! It's running!!!!! FINALLY!

I don't think the skinning is working though. I changed the directory in registry.h, but still the text has no button around it, but there is a window and I can move it around. Great work, ganesh!

I compiled with DJGPP, got some warnings in core\cfg.c and sfc\list.cpp. I had to create an objs\ directory and I had to change the last line in dj.bat to:
Code:
gcc -o seal.exe objs/*.o -lalttf -lalleg -lm -lstdcxx


But that's all I had to do!!!!

Again, great work ganesh!
Back to top
View user's profile Send private message Visit poster's website
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Sat Aug 03, 2002 3:59 am    Post subject: Reply with quote

ganesh wrote:
Alleg402 should work, its binary compatible with alleg410.


No it's not. It may happen to be, but you shouldn't rely on that. All the Allegro 4.0.x versions are binary compatible with each other (you can run a 4.0.2 app with a 4.0.0 DLL, for example). The 4.1.x versions are binary compatible with each other, but 4.1 isn't binary compatible with 4.0. That's why the DLLs are called ALLEG40.DLL and ALLEG41.DLL. Anyway...
_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ganesh



Joined: 11 Jul 2002
Posts: 133
Location: Vancouver, BC, CA

PostPosted: Sat Aug 03, 2002 7:47 am    Post subject: Reply with quote

Owen,

so does that mean all 4.0.x releases are just called alleg41.dll ??


FK,

Can you get me the warnings with DJGPP on compiling list.cpp, thats funny. Its my code and does not give any warnings with any of the compilers I have. As before, cfg.[h,c] and mfile.[c,h] is not my code (I have fixed a lot of things), so I am still working on that. Moreover, cfg.c doesnt seem to compile on MSVC. Its just a pointer addition problem.

And I will not be distributing the code from allegttf, I dont think it is going to change. 184 KB is quite a bit.

Soon, Ill be writing out whitepapers on how the widgets, apps etc are framed. This should be more or less the standard. Finally the preview can become actual code
_________________
Ganesh lives @
www.iamganesh.com
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Finkelsmak Kvasthuvud



Joined: 21 Apr 2002
Posts: 85
Location: Sweden

PostPosted: Sat Aug 03, 2002 9:06 am    Post subject: Reply with quote

here's the warnings from list.cpp, doesn't seem too serious:

Code:
../src/sfc/list.cpp: In function `void report(FILE*)':
../src/sfc/list.cpp:61: warning: unsigned int format, size_t arg (arg 4)
../src/sfc/list.cpp:62: warning: unsigned int format, size_t arg (arg 4)


I don't understand it though. size_t is unsigned... so why is it complaining?

Any idea why the skinning doesn't work? Does it work for you Lukas?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Seal 3.0 Development All times are GMT - 7 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group