User forums > Nightly builds

The 28 May 2014 build (9781) is out.

(1/14) > >>

killerbot:
Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll for Code::Blocks : http://prdownload.berlios.de/codeblocks/wxmsw28u_gcc_cb_wx2812_gcc481-TDM.7z

For those who might need this one (when no MingW installed on your system) : the mingw10m.dll : http://prdownload.berlios.de/codeblocks/mingwm10_gcc481-TDM.7z

The 28 May 2014 build is out.
  - Windows :
   http://prdownload.berlios.de/codeblocks/CB_20140528_rev9781_win32.7z
  - Linux :
   none

Resolved Fixed:


* Removed standalone codesnipptes app from debian and rpm control files, because it no longer exists.
* CC: Fix crash when creating new file from the wizard and there is a default code to be added to the file
Regressions/Confirmed/Annoying/Common bugs:


nexon7:
The easiest tutorial for installing codeblocks nightly and setting TDM GCC 32 and 64 bit (download from tdm-gcc site) is here   https://nexon7.wordpress.com/2013/09/03/how-to-install-codeblock-nightly-build-with-latest-gcc-compiler-32-bit-and-64-bit/  
This build 9781 works like charm :)

nasty_wolverine:
Is there a documented bug about the astyle formatter? recently it has been going wack moving code all over the place, like from one function to another.

stahta01:

--- Quote from: nasty_wolverine on May 30, 2014, 11:20:30 am ---Is there a documented bug about the astyle formatter? recently it has been going wack moving code all over the place, like from one function to another.

--- End quote ---

I have NOT noticed it; but, I have NOT been using CB SVN version 9781.
I suggest posting the normal info and how to duplicate the issue.
OS Name and version; wxWidgets version; source of Code::Blocks (self built or ?).

Tim S.

nasty_wolverine:
before:

--- Code: ---#include "hash_manager.h"

int ChashManager::calculate_hash(float x, float y)
{
if( ((x >= 4.0f)||(x < 0.0f)) || ((y >= 4.0f)||(y < 0.0f)) )
{
return 0xFFFF;
}
else
{
return ( ((int)y*4) + (int)x); //TO DO: how do i control hash size???
}
}

int ChashManager::getbin(vector2f position, vector2f offset, vector2f corner, vector2f camera)
{
    vector2f temp;

temp = position + offset + corner;
temp = temp - camera; //collapse to camera space

return calculate_hash(temp.x, temp.y);
}

void ChashManager::flush()
{
hashbucket_.clear();
objectindex_.clear();
}

void ChashManager::add(int id, Chitbox phitbox, vector2f position, vector2f camera)
{
//main loop for every available hitbox in hitbox collection
for(std::vector<circle2f>::size_type i = 0; i < phitbox.collection.size(); i++)
{
    //phitbox.collection[i].r
    Sbox box();






}
}

void addtomap(int id, Sbox box)
{
    if( box.box_min == 0xffff && box.box_max == 0xffff && box.box_lt == 0xffff && box.box_rb == 0xffff )
{
return; // out of scene
}

    int ymod = 0;

int xspread = box.box_rb - box.box_min;
int yspread = (box.box_max - box.box_rb)/4;

for(int y = 0; y <= yspread; y++)
{
for(int x = box.box_min; x <= (xspread + box.box_min); x++)
{
//p_ent->hitbox.binlist.push_back(ymod + x);//bin number here is (ymod+x)
}
ymod += 4;
}
}

void delimit_box(Sbox &box)
{
    //lt, max
//min, rb

if( box.box_min == 0xffff && box.box_max == 0xffff && box.box_lt == 0xffff && box.box_rb == 0xffff )
{
return; // out of scene
}

//first scenario - min is Oxffff (object in lower left corner)
if((box.box_min == 0xffff) && (box.box_max != 0xffff))
{
if( box.box_lt == 0xffff && box.box_rb == 0xffff )
{
box.box_rb = box.box_max%4;
box.box_lt = 4*(box.box_max/4);
box.box_min = 0;
}
else if( box.box_lt != 0xffff && box.box_rb == 0xffff )
{
box.box_min = box.box_lt%4;
box.box_rb = box.box_max%4;
}
else if( box.box_lt == 0xffff && box.box_rb != 0xffff )
{
box.box_lt = 4*(box.box_max/4);
box.box_min = 4*(box.box_rb/4);
}
}
//second scenario- max is 0xffff (object in upper right corner)
else if ( (box.box_min != 0xffff) && (box.box_max == 0xffff) )
{
if( box.box_lt == 0xffff && box.box_rb == 0xffff )
{
box.box_max = 15;
box.box_lt = (box.box_min%4)+12;
box.box_rb = (((box.box_min/4)+1)*4)-1;
}
else if( box.box_lt != 0xffff && box.box_rb == 0xffff )
{
box.box_max = (((box.box_lt/4)+1)*4)-1;
box.box_rb = (((box.box_min/4)+1)*4)-1;
}
else if( box.box_lt == 0xffff && box.box_rb != 0xffff )
{
box.box_max = 12+(box.box_rb%4);
box.box_lt = 12+(box.box_min%4);
}
}
//second scenario- max and min is 0xffff (object in upper right/lower left corner)
else if ( (box.box_min == 0xffff) && (box.box_max == 0xffff) )
{
if(box.box_rb == 0xffff)
{
box.box_max = (((box.box_lt/4)+1)*4)-1;
box.box_min = box.box_lt%4;
box.box_rb = 3;
}
else
{
box.box_lt = 12;
box.box_max = 12+(box.box_rb%4);
box.box_min = 4*(box.box_rb/4);
}
}
}

std::vector<int> ChashManager::getBinElements(int pid)
{


}



--- End code ---

after:

--- Code: ---#include "hash_manager.h"

int ChashManager::calculate_hash(float x, float y)
{
if( ((x >= 4.0f)||(x < 0.0f)) || ((y >= 4.0f)||(y < 0.0f)) )
{
return 0xFFFF;
}
else
{
return ( ((int)y*4) + (int)x); //TO DO: how do i control hash size???
}
}

int ChashManager::getbin(vector2f position, vector2f offset, vector2f corner, vector2f camera)
{
vector2f temp;

temp = position + offset + corner;
temp = temp - camera; //collapse to camera space
temp = temp - camera; //collapse to camera space
return calculate_hash(temp.x, temp.y);
}

void ChashManager::flush()
{
hashbucket_.clear();
objectindex_.clear();
}

void ChashManager::add(int id, Chitbox phitbox, vector2f position, vector2f camera)
{
//main loop for every available hitbox in hitbox collection
for(std::vector<circle2f>::size_type i = 0; i < phitbox.collection.size(); i++)
{
//phitbox.collection[i].r
Sbox box();






}
}

void addtomap(int id, Sbox box)
{
if( box.box_min == 0xffff && box.box_max == 0xffff && box.box_lt == 0xffff && box.box_rb == 0xffff )
{
return; // out of scene
}
{
int ymod = 0;

int xspread = box.box_rb - box.box_min;
int yspread = (box.box_max - box.box_rb)/4;

for(int y = 0; y <= yspread; y++)
{
for(int x = box.box_min; x <= (xspread + box.box_min); x++)
{
//p_ent->hitbox.binlist.push_back(ymod + x);//bin number here is (ymod+x)
}
ymod += 4;
}
}

void delimit_box(Sbox &box)
{
//lt, max
//min, rb
int yspread = (box.box_max - box.box_rb)/4;
if( box.box_min == 0xffff && box.box_max == 0xffff && box.box_lt == 0xffff && box.box_rb == 0xffff )
{
return; // out of scene
}
for(int y = 0; y <= yspread; y++)
//first scenario - min is Oxffff (object in lower left corner)
if((box.box_min == 0xffff) && (box.box_max != 0xffff))
{
if( box.box_lt == 0xffff && box.box_rb == 0xffff )
{
box.box_rb = box.box_max%4;
box.box_lt = 4*(box.box_max/4);
box.box_min = 0;
}
else if( box.box_lt != 0xffff && box.box_rb == 0xffff )
{
box.box_min = box.box_lt%4;
box.box_rb = box.box_max%4;
}
else if( box.box_lt == 0xffff && box.box_rb != 0xffff )
{
box.box_lt = 4*(box.box_max/4);
box.box_min = 4*(box.box_rb/4);
}
}
//second scenario- max is 0xffff (object in upper right corner)
else if ( (box.box_min != 0xffff) && (box.box_max == 0xffff) )
{
if( box.box_lt == 0xffff && box.box_rb == 0xffff )
{
box.box_max = 15;
box.box_lt = (box.box_min%4)+12;
box.box_rb = (((box.box_min/4)+1)*4)-1;
}
else if( box.box_lt != 0xffff && box.box_rb == 0xffff )
{
box.box_max = (((box.box_lt/4)+1)*4)-1;
box.box_rb = (((box.box_min/4)+1)*4)-1;
}
else if( box.box_lt == 0xffff && box.box_rb != 0xffff )
{
box.box_max = 12+(box.box_rb%4);
box.box_lt = 12+(box.box_min%4);
}
}
//second scenario- max and min is 0xffff (object in upper right/lower left corner)
else if ( (box.box_min == 0xffff) && (box.box_max == 0xffff) )
{
if(box.box_rb == 0xffff)
{
box.box_max = (((box.box_lt/4)+1)*4)-1;
box.box_min = box.box_lt%4;
box.box_rb = 3;
}
else
{
box.box_lt = 12;
box.box_max = 12+(box.box_rb%4);
box.box_min = 4*(box.box_rb/4);
}
}
}
for(int x = box.box_min; x <= (xspread + box.box_min); x++)
std::vector<int> ChashManager::getBinElements(int pid)
{
//p_ent->hitbox.binlist.push_back(ymod + x);//bin number here is (ymod+x)
}
}



--- End code ---

as you can see, astyle formatting things is out of whack for me, there is some code duplication going on in the getbin method, and right near the end its copying code from somewhere else.

this is using nightly 9781 in windows 7 64bit

Navigation

[0] Message Index

[#] Next page

Go to full version