[NiL-devel] Re: NIL - no luck with compilation
Status: Alpha
Brought to you by:
e-user
|
From: egore <eg...@gm...> - 2005-01-18 09:50:51
|
Michal Kozak schrieb: >Thx man, >I'm a bit of a programer myself. NIL work, but I did had a chance to tes= t it on a real battle fild :) :) :). > >I've been tring to compile the src file form http://nil.sourceforge.net/= NiL Source Release 2004-01-23. > =20 > That's not a release, it's a CVS backup. (Note to myself: Remove that=20 file since it's neiter needed nor up-to-date) >Hmm. Nil page is one of my favorites in this week. I was wondering if ca= n any one make small tutorial or howto on makeing weapons, and maps? I ca= n't find any thing like this on the net. > =20 > Creating wepaons is not difficult, it can be understood by simply=20 looking at the existing ones. NiL is able to load maps from Liero, so=20 any editor or tutorial can be used to create maps for NiL (I'm not 100%=20 sure about that). I'm lacking time to document NiL (the current docs=20 aren't complete and partly outdated) but I will see if I can afford some=20 time the next weeks to update the docs and hopefully add some tutorials=20 on how to use different things in NiL. >Pozdrowionka >Michal > >U=BFytkownik egore <eg...@gm...> napisa=B3: > =20 > >>Hi, >> >>I need some more information which version of NiL you are compiling (I=20 >>hope you are using the latest CVS version (and please tell me when you=20 >>did the checkout)). I will look into that in a few hours since I\'m at=20 >>work right now. >> >>Regards, >> Christoph aka egore >> >>Michal Kozak schrieb: >> >> =20 >> >>>Yo man, >>> >>>I\'m trying to compile NIL from a while, but no luck. >>> >>>Is there an error in sorce of raw_surface.cpp around line 379 and 428. >>>xsize not defined?? >>> >>>This is my version of this lines with coments: >>> >>>int t_xsize =3D target->_get_xsize(); >>>int s_xsize =3D source->get_xsize(); // in oryginal this line is like= that int s_xsize =3D source->_get_xsize(); >>> >>>target_pixel+=3Dsource_xpos+ source_ypos*t_xsize; >>>source_pixel+=3Dtarget_xpos+target_ypos*s_xsize; // chanenged from xs= ize to s_xsize >>> >>>if (enlargement =3D=3D 1) { >>>int bytes_pr_line =3D source_xsize*sizeof(int32); >>>for(int y=3D0;y<source_ysize;y++) { >>> =20 >>> >>>for (int x=3D0;x<source_xsize;x++) { >>>*target_pixel++=3Dbf.blend(*source_pixel++,*target_pixel); >>>} >>>target_pixel+=3Dt_xsize-source_xsize; >>>source_pixel+=3Ds_xsize-source_xsize; //same story as below >>>} >>> >>>} else if (enlargement =3D=3D 2) { >>>for(int y=3D0;y<source_ysize;y++) { >>>for(int x=3D0;x<source_xsize;x++) { >>>int32 pixel=3D*source_pixel; >>>*target_pixel++ =3D bf.blend(pixel,*target_pixel); >>>*target_pixel++ =3D bf.blend(pixel,*target_pixel); >>>source_pixel++; >>>target_pixel[t_xsize-2] =3D bf.blend(pixel,target_pixel[t_xsize-= 2]); >>>target_pixel[t_xsize-1] =3D bf.blend(pixel,target_pixel[t_xsize-= 1]); >>>} >>>target_pixel+=3D(t_xsize<<1)-(source_xsize<<1); >>>source_pixel+=3Ds_xsize-source_xsize; // it was xsize not s_xsiz= e >>>} >>>} else { >>>for(int y=3D0;y<source_ysize;y++) { >>>for (int e=3D0;e<enlargement;e++) { >>>const int32 *sp =3D source_pixel; >>>int32 *tp =3D target_pixel; >>> >>>for(int x=3D0;x<source_xsize;x++) { >>>switch (enlargement) { >>>case 7: *tp++=3Dbf.blend(*sp,*tp); >>>case 6: *tp++=3Dbf.blend(*sp,*tp); >>>case 5: *tp++=3Dbf.blend(*sp,*tp); >>>case 4: *tp++=3Dbf.blend(*sp,*tp); >>>case 3: *tp++=3Dbf.blend(*sp,*tp); >>>case 2: *tp++=3Dbf.blend(*sp,*tp); >>>default: >>>case 1: *tp++=3Dbf.blend(*sp,*tp); >>>} >>>sp++; >>>} >>>target_pixel+=3Dt_xsize; >>>} >>>source_pixel+=3Ds_xsize; // it was xsize not s_xsize >>>} >>>} >>>} >>> >>>Am I right or am I wrong?? >>> >>>My OS is Fedora core 3. >>> >>>Best regards=20 >>>Michal >>> >>> >>> =20 >>> > =20 > > > > =20 > |